Re: [R] Merging two data frames with 3 common variables makes duplicated rows

2009-05-09 Thread Rocko22
Thomas, You are very clever! The "meil2" data frame has twice the common variable combinations: > meil2 dist sexe style meil 138F clas 02:43:17 238F free 02:24:46 338H clas 02:37:36 438H free 01:59:35 545F clas 03:46:15 645F free 02:20

Re: [R] Merging two data frames with 3 common variables makes duplicated rows

2009-05-08 Thread Thomas Lumley
On Fri, 8 May 2009, Rock Ouimet wrote: I am new to R (ex SAS user) , and I cannot merge two data frames without getting duplicated rows in the results. How to avoid this happening without using the unique() function? 1. First data frame is called "tmv" with 6 variables and 239 rows: tmv[1:10,

[R] Merging two data frames with 3 common variables makes duplicated rows

2009-05-08 Thread Rock Ouimet
I am new to R (ex SAS user) , and I cannot merge two data frames without getting duplicated rows in the results. How to avoid this happening without using the unique() function? 1. First data frame is called "tmv" with 6 variables and 239 rows: > tmv[1:10,] temps nomprenom sex