Thank you very much. That appears to be what I wanted.
--
View this message in context:
http://r.789695.n4.nabble.com/converting-a-string-to-an-integer-vector-tp4646610p4646624.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@
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 s
Hi All,
Thanks in advance for your help. I take this to be a very basic
question, but I'm very new to R.
I'm trying to figure out how to parse an object. I have the following:
> fileLocation
location
1 foo.csv
> fileLocation$location
That's simple and appears to work. Thanks for the prompt response.
Ben
--
View this message in context:
http://r.789695.n4.nabble.com/parsing-a-structured-object-tp4647246p4647334.html
Sent from the R help mailing list archive at Nabble.com.
__
R-h
4 matches
Mail list logo