Skip to content
Prev 179052 / 398506 Next

factor level

Tell me how this works out for you.  I think R is seeing your "newXaxis" 
variable as a character variable because there is some non-numeric string 
in there, then it converts to factor.  Try setting stringsAsFactors=FALSE 
in the read.csv and see if it is then read as character.  If it is, try 
your command again:

mydata[,"newXaxis"]<-as.numeric(mydata[,"newXaxis"])

I don't know if this will work.  Just guessing.

Mike
On Fri, 1 May 2009, phoebe kong wrote:

            
Please note that I am using a new email address.
My old email address @taxa.epi.umn.edu, will stop working
because that old computer is being retired.