[R] as.integer

aledanda danda.galli at gmail.com
Tue Jun 8 09:41:25 CEST 2010

thanks for your reply.
I attached the example. 
I tried your suggestion:

data[is.factor(data)] <- lapply(data[is.factor(data)], function(x) 

But I still have the var as factors.

I'm thinking now, in the txt file the decimals numbers are separated with a
coma. Would it be the reason?

Thanks a lot!

http://r.789695.n4.nabble.com/file/n2246983/pdvspt.txt pdvspt.txt 
View this message in context: http://r.789695.n4.nabble.com/as-integer-tp2245987p2246983.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list