Displaying 1 result from an estimated 1 matches for "tnp2".
Did you mean:
tmp2
2010 Mar 22
2
Problem with factors in lm() when using Rscript but not GUI
...) 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 get the error when using Rscript version 2.9.2....
#######################################
#windows batch file contains this line to call tnp2.r r-script
#Rscript ./tnp2.r --slave
########################################
########################################
#tnp2.r - contents of tnp2.r script file are below
print(R.Version()$version.string)
#generate some data
x <- rep(c(1:12),3)
y <- 1:length(x)+rnorm(length(x))
print(x)
p...