Let $ W $ be a sub vector space of $ \mathbb{R}^n $. How can we determine if $ W $ admits an integer basis?
This is equivalent to asking how to determine if $ W \cap \mathbb{Z}^n $ spans $ W $.
Obviously if $ W=\mathbb{R}^n $ then there is always an integer basis. For example the standard basis $ e_1,\dots e_n $, just the columns of the identity matrix.
$ W $ a $ 1 $ dimensional subspace of $ \mathbb{R}^2 $ is the first nontrivial case. In this case
$$
W=Span \{ (a,b) \}
$$
and $ W $ has an integer basis if and only if $ a/b $ or $ b/a $ (check both in case $ a $ or $ b $ is $ 0 $) is rational.
Is there some general criterion that allows us to look at certain spanning sets for $ W $ and perhaps look at ratios of coefficients like this to solve the problem?