[R] Problem with converting factors to numbers

_Luc_ l.temarvelde at nioo.knaw.nl
Tue Sep 20 13:25:38 CEST 2011

ok great, as.numeric(as.character(data$x)) works perfectly.

I am sorry that i did not find this before making this post. 

@ peter
what did not work was:
data$x2 <- as.character(data$x) 
data$x3 <- as.numeric(data$x2) 

View this message in context: http://r.789695.n4.nabble.com/Problem-with-converting-factors-to-numbers-tp3826061p3826480.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list