[R] FW: merge multiple csv files

From: Gator Connection <gatorconnection_at_hotmail.com>
Date: Fri, 8 Feb 2008 15:32:17 -0500

Dear list:I have a folder that contains more than 50 csv files labels sequencially like sample01.csv to sample50.csv. for each file the first 5 rows are descriptive of the data collected (useful but not needed in data merge). each file then start the data at row 6 and have 2 variables x and y. In order to know which file one observation is from, I'd like to have a new variable location, for example if the data are from file sample11.csv, then the location for that obs is 11.Another difficulty is there might be two observations actually repetitive, for example sample05.csv might contain (4, 10) and (4, 12). I'd like to average it into (4, 11). Any suggestions are welcome.Jack

Connect and share in new ways with Windows Live. Get it now!


        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 08 Feb 2008 - 21:21:06 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Feb 2008 - 22:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive