Skip to content
Prev 214661 / 398500 Next

Problem with factors in lm() when using Rscript but not GUI

Soemone broke contrasts<- in 2.10.0 to require the 'methods' package, 
but this was corrected in R-patched on Jan 4.

Thus you need to add 'methods' to the default packages in Rscript (see 
its help) or update your R.

This has come up before, so a search of the archives was likely to 
have found it.
On Tue, 23 Mar 2010, Paul.Rustomji at csiro.au wrote: