Just as a set, $\mathbb{R}^n$ has the same cardinality as $\mathbb{R}$. We can therefore fix a bijection $f : \mathbb{R}^n \to \mathbb{R}$ and define the field operations and constants on $\mathbb{R}^n$ by pulling back the known operations from $\mathbb{R}$ (e.g. for $x, y \in \mathbb{R}^n$, define $x + y = f^{-1}(f(x) + f(y))$). This makes $\mathbb{R}^n$ into a field, for any $n$.
Since you mentioned quaternions, I assume your question might have been: "For which $n$ can we make $\mathbb{R}^n$ into a field which respects the natural structure as an $n$-dimensional $\mathbb{R}$-vector space?" The answer is given by the Frobenius theorem: $n=1, 2$ if we need the field to be commutative, $n=4$ is also possible if we allow non-commutative fields.
Wikipedia: https://en.wikipedia.org/wiki/Frobenius_theorem_(real_division_algebras)