[R] Merge Multiple Datasets
eriki at ccbr.umn.edu
Fri May 7 02:14:34 CEST 2010
Wang, Kevin (SYD) wrote:
> I've got a bunch of datasets (each has an "ID" column) that I'd like to
> merge into one big datasets.
> After a google search I found
> http://tolstoy.newcastle.edu.au/R/help/05/08/11131.html . However, I'm
> wondering if there is an easy way to do this as I've got about 12
> datasets to be merged (all in the same format: an "ID" column and a
> "Frequency" column")? Also, as I'm expecting more individual datasets
> to come in, I'm trying to automate my code so I don't have to keep
> manually adding in datasets into the merge() function.
> Any suggestions would be greatly appreciated.
Try combining with ?Reduce, I think that should work. Some package has/had a
merge.all or merge_all function at some point, too.
More information about the R-help