[R] Read multiple files into dataframe?

2009-09-01 Thread Douglas M. Hultstrand
Hello, I am fairly new to R programming and am stuck with the following problem. I am trying to read in multiple files (see attached file or at end of email), the files all have the same general header information and different precipitation (avgppt) and area (areasqmi) values. Some times

Re: [R] Read multiple files into dataframe?

2009-09-01 Thread jim holtman
I would put the data into a 'long' instead of 'wide' format since you say you have files of different lengths. I took you data and replicated it 3 time and changed the file name for the duration: fileNames - Sys.glob('/da_zone*') # files to process result - lapply(fileNames, function(.file){