[R] Append/merge

About this list Date view Thread view Subject view Author view Attachment view

From: Debra Taylor (debrat@bestweb.net)
Date: Fri 20 Jul 2001 - 01:07:29 EST


Message-id: <000001c11064$8777bd70$5b2cb3d8@dell>

I have a question about stacking datasets.

I have 40 stata datasets that have exactly the same number of variables,
with the same names (~420k rows, 8 columns).

The datasets are relatively large ~ 15 megs.

If they were text files a linux "cat file1 file2 >> combo" sort of
strategy would work.

I've considered using a merge command, but I don't want any records
merged, only appended. Also, I don't want any variables to be renamed.
Given there unique nature, using a simple
merge(read.dta('file1'),read.dta('file2')) would give me (I think) what
I am looking for but seems incredibly inefficient.

There are a number of ways I could approach this all of which involve a
non-R solution.

Does somebody have an R solution in mind?

Thanks in advance,

Debra Taylor


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 10 Mar 2004 - 08:18:20 EST