[R] From string to numeric

Christofer Bogaso bogaso.christofer at gmail.com
Wed Sep 15 22:42:26 CEST 2010


Hi, I have a string like "1,2,5,7,8".

>From this I want to create a numeric vector of length 5 (total number
of numbers in above string), with each element will be the number in
above string. Is there any possibility to doing this?

Thanks and regards,



More information about the R-help mailing list