Re: [R] Duplicate of columns when merging two data frames

2014-03-13 Thread Marc Schwartz
On Mar 13, 2014, at 10:19 AM, Stefano Sofia wrote: > Dear list users, > I have two data frames df1 and df2, where the columns of df1 are > > Sensor_RM Place_RM Station_RM Y_init_RM M_init_RM D_init_RM Y_fin_RM M_fin_RM > D_fin_RM > > and the columns of df2 are > > Sensor_RM Station_RM Place

Re: [R] Duplicate of columns when merging two data frames

2014-03-13 Thread MacQueen, Don
You have duplicates after merging because, although you know they are the same, the R merge() function does not. And the people who wrote that function knew that sometimes two columns with the same name are not identical. Since you know that the columns are identical, drop the column from one of t