[R] lm() notation question

Carl Witthoft carl at witthoft.com
Sun Nov 29 17:46:15 CET 2009


Hi,
A recent thread provided a (working) construct for lm:

lm(as.matrix(freeny[ix]) ~., freeny[-ix])


Can someone explain what is meant by the formula in that expression,
that is,  what does "mymatrix~."  do?  I couldn't find any such example 
in the lm() or formula() help pages.

thanks
Carl




More information about the R-help mailing list