[R] Data read as labels

barb mainzel89 at hotmail.com
Tue May 15 17:13:29 CEST 2012


Hey David,

i tried all this - it doesn´t work :(

file<-read.csv2(tmp,sep=";",skip="5") # or
file<-read.csv2(tmp,sep=";",skip="5",stringsAsFactors=FALSE)a<-(relevant<-file[,2]) 
clean <- as.numeric(levels(a))[as.integer(a)]
clean<-as.numeric(as.character(a))


i often use noquote and strsplit and then convert data, but i never dealed
with that kind of data
and it drives me crazy =)

--
View this message in context: http://r.789695.n4.nabble.com/Data-read-as-labels-tp4629901p4630112.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list