Hello,
I have a csv file with many variables, both characters and integers.
I would like to load it on R and do some operations on integer
variables, the problem is that R loads the entire dataset considering
all variables as characters, instead I would like that R makes the
distinction between the two types, because there are too many variables
to do:
x1<-as.integer(x1)
x2<-as.integer(x2)
x3<-as.integer(x3)
...
I tried to specify read.table(... stringsAsFactors=FALSE) but it doesn't
work.
Thanks,
Best Regards
______________________________________________
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.