Several folks pointed out the problem is most likely that a column of data is being read in as a factor.

I prefer to solve this by setting as.is=TRUE as one of the arguments to read.table() (unless I am mis-remembering and it needs to be set to FALSE :-) ). The point is to tell the read function to read character strings in as character strings, rather than converting them into factors. After that you can convert the offending column with as.numeric or one of the date-conversion functions (if the input is date/time strings)

Carl

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to