[R] Merge two dataframes of different column length and row length by two columns at a time

Philipp Pagel philipp.pagel.lists at t-online.de
Fri Jul 21 10:24:28 CEST 2006

On Fri, Jul 21, 2006 at 09:33:56AM +0200, Gunther Höning wrote:
> I have two dataframes of the following structures:

> I want to merge these dataframes by V1 and V2 of a and b. The combination of
> V1, V2 is a unique key.
> Note that b is smaller than a.
> Any suggestions to solve this problem ?

Use merge()


Dr. Philipp Pagel                            Tel.  +49-8161-71 2131
Dept. of Genome Oriented Bioinformatics      Fax.  +49-8161-71 2186
Technical University of Munich
Science Center Weihenstephan
85350 Freising, Germany


Institute for Bioinformatics / MIPS          Tel.  +49-89-3187 3675
GSF - National Research Center               Fax.  +49-89-3187 3585
      for Environment and Health
Ingolstädter Landstrasse 1
85764 Neuherberg, Germany

More information about the R-help mailing list