[R] Joining together multiple csv files

Santosh Srinivas santosh.srinivas at gmail.com
Fri Oct 15 06:13:59 CEST 2010


I guess you could simply read the files into a loop and write into the
aggregated files using write.table with append = true in the same loop


-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of aeneas24 at priest.com
Sent: 15 October 2010 08:47
To: r-help at r-project.org
Subject: [R] Joining together multiple csv files


Hi,

This feels like a kinda dumb basic question, but I haven't been able to
figure it out.

I have a bunch of csv files I'd like to put into one csv using R.

I have tried cat, append, join, aggregate, and a bunch of other things, but
none of them really work for combining the data. If it's one of those
listed, then my syntax is goofy. The csv files have different row numbers
but the same columns. I just want to add each one to the end of the other. 

I've removed the heading from all but one of them (but I could easily get
the headings all back if that helps).

Thanks for the help!

Tyler





	[[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.



More information about the R-help mailing list