On 11-09-20 7:25 AM, _Luc_ wrote:
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)
That should have worked. Can you put together a simple example where it
doesn't?
Duncan Murdoch
______________________________________________
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.