[R] "Best" way to merge 300+ .5MB dataframes?

Grant Rettke gcr at wisdomandwonder.com
Mon Aug 11 18:01:28 CEST 2014


On Sun, Aug 10, 2014 at 6:50 PM, John McKown
<john.archie.mckown at gmail.com> wrote:

> OK, I assume this results in a vector of file names in a variable,
> like you'd get from list.files();

Yes.

> Why? Do you need them in separate data frames?

I do not.

> The meat of the question. If you don't need the files in separate data
> frames, and the files do _NOT_ have headers, then I would just load
> them all into a single frame. I used Linux and so my solution may not
> work on Windows. Something like:

Excellent point. All of the files do have the same header. I'm on OSX
so there must be a nice
one liner to concatenate all of the individual files, dropping the
first line for all but the first.  Danke!



More information about the R-help mailing list