The dimension of an affine algebraic variety $V\subset k^n$ is defined as the Krull dimension of its coordinate ring $k[V]=k[X_1,\cdots,X_n]/I(V)$ where $I(V)$ is the set of polynomials in $k[X_1,\cdots,X_n]$ vanishing on $V$.
In the case where $V$ is moreover a vector space over the field $k$, I don't succeed in showing that the dimension of $V$ as vector space is the same as the dimension of $V$ as affine algebraic variety. In particular, what can be said about the ideal $I(V)$ in this case ?