[R] Some questions about R's modelling algebra

Hadley Wickham hadley at rice.edu
Fri Jul 2 16:16:02 CEST 2010


> ?formula in R 2.9.2 says in para 2:
> "The %in% operator indicates that the terms on its left are nested
> within those on the right. For example a + b %in% a expands to the
> formula a + a:b. "

Ooops, missed that.  So b %in% a = a:b, and that's what's meant by
"different coding".

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-help mailing list