[R] Any existing functions for reading and extracting data from path names?

2011-03-11 Thread Ista Zahn
Hi helpeRs, I have inherited a set of data files that use the file system as a sort of poor man's database, i.e., the data files are nested in directories that indicate which city they come from. For example: dir.create(deleteme) for(i in paste(deleteme, c(New York, Los Angeles), sep=/)) {

Re: [R] Any existing functions for reading and extracting data from path names?

2011-03-11 Thread Henrik Bengtsson
Hi, the R.filesets package was designed for this. It is heavily used by the aroma framework (http://www.aroma-project.org/), so it got a fair bit of mileage now (in a good a way). Here is how you could setup your data set and work with the data. # - - - - - - - - - - - - # Setup file data set

Re: [R] Any existing functions for reading and extracting data from path names?

2011-03-11 Thread Ista Zahn
Thanks Henrik, that is exactly what I was hoping for! Best, Ista On Fri, Mar 11, 2011 at 1:02 PM, Henrik Bengtsson h...@biostat.ucsf.edu wrote: Hi, the R.filesets package was designed for this.  It is heavily used by the aroma framework (http://www.aroma-project.org/), so it got a fair bit

Re: [R] Any existing functions for reading and extracting data from path names?

2011-03-11 Thread Mikhail Titov
] out }) y - do.call(rbind, x) Mikhail -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Ista Zahn Sent: Friday, March 11, 2011 10:53 AM To: r-help@r-project.org Subject: [R] Any existing functions for reading

Re: [R] Any existing functions for reading and extracting data from path names?

2011-03-11 Thread Ista Zahn
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Ista Zahn Sent: Friday, March 11, 2011 10:53 AM To: r-help@r-project.org Subject: [R] Any existing functions for reading and extracting data from path names? Hi helpeRs, I have