win-vector.com
R Tip: How to Pass a formula to lm
R tip : how to pass a formula to lm(). Often when modeling in R one wants to build up a formula outside of the modeling call. This allows the set of columns being used to be passed around as a vect…