[R] Merging two data.frames

David Lambert lambertd at ksu.edu
Mon Dec 8 17:42:57 CET 2014

I have 2 data frames, M1[n,20] and M2[m,30].

If V1 and V2 are the same in both M1 and M2, then append V3-V30 from M2 onto M1.

Otherwise, continue searching for a match.

M1 is complete for all V1 and V2.  M2 is missing observations for V1 or V2, or both.

I can't figure this one out, except with reference to my old fortran-era skills.  Help!

	[[alternative HTML version deleted]]

More information about the R-help mailing list