[R] parsing a structured object

BenM bmmoskow at amath.washington.edu
Wed Oct 24 01:43:39 CEST 2012


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
          [1] foo.csv
          Levels: foo.csv

What I want to get back is "foo.csv", as a string.  What is the best way to
do this?

Thanks,

Ben



--
View this message in context: http://r.789695.n4.nabble.com/parsing-a-structured-object-tp4647246.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list