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
Found the solution - already posted here
http://n4.nabble.com/Rscript-question-td1067729.html#a1067729
Basically Rscript does not automatically load library(methods) like Rgui
does...
--
View this message in context:
http://n4.nabble.com/Problem-with-factors-in-lm-when-using-Rscript-but-not-GU
Hello R-help
I am having a curious problem. I am using a batch file to call an R script and
am getting an error when performing a lm() fit using factorial data only when
running in batch mode (see below). I do not get the error when executing the
same code in GUI mode in R 2.10.1. Nor do I g
3 matches
Mail list logo