Hi All,
     Thanks in advance for your help.  I'm trying to convert a string to an
integer vector.  For instance, I will start with

a <- "1,2"

The result I want to end up with will be the equivalent of 

c(1,2)

What's the best way to make the conversion?  I've tried using as.integer(a),
but R seems to balk at that.

Thanks,

Ben



--
View this message in context: 
http://r.789695.n4.nabble.com/converting-a-string-to-an-integer-vector-tp4646610.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.

Reply via email to