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. ______________________________________________ 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.