After some research, I find that the relationship between $R^2$ and the F distribution is as follows:
$$ R^2 = 1 - (1 + F \cdot \frac{p-1}{n-p})^{-1} $$
But I am not sure what the $p$ and $n$ values should be. Suppose my $R^2$ is calculated from 10 values of $x$ and $y$, what would $p$ and $n$ be?
Thanks!
EDIT: don't think it's a duplicate because my question is more basic, i.e. what $p$ and $n$ values are.