This seems to be a matroid theory question. If you let $S$ be the ground set of the matroid and you let $r$ be the rank of the matroid (i.e. $\dim \mathrm{span}(S)$), then your question amounts to finding the largest flat of rank $r-1$.
For reference, I would recommend Oxley's Matroid Theory.
That said, one generally cares more about finding the entire lattice of flats or a maximal chain of flats than a particular one. But to answer your question, flats, in general, are of particular interest in matroid theory. There are a number of tools for finding flats as well.