Skip to content
Prev 179773 / 398502 Next

Merging two data frames with 3 common variables makes duplicated rows

On Fri, 8 May 2009, Rock Ouimet wrote:

            
Lines 9 and 1 appear to be the same in meil2, as do 2 and 10.  If the 16 rows consist of two repeats of 8 rows that would explain why you are getting two copies of each individual in the output. unique(meil2) would have just the distinct rows.

      -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle