Re: [R] converting a string to an integer vector

2012-10-18 Thread BenM
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@

[R] converting a string to an integer vector

2012-10-18 Thread BenM
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

[R] parsing a structured object

2012-10-23 Thread BenM
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

Re: [R] parsing a structured object

2012-10-24 Thread BenM
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