Saturday, 24 August 2013

how to split fields after reading the file in R

how to split fields after reading the file in R

I have a file with this format in each line:
f1,f2,f3,a1,a2,a3,...,an
Here, f1, f2, and f3 are the fixed fields separated by ,, but f4 is the
whole a1,a2,...,an where n can vary.
How can I read this into R and conveniently store those variable-length a1
to an?
Thank you.

No comments:

Post a Comment