[R] remove duplicates in data frame

S Ellison S.Ellison at LGCGroup.com
Thu Apr 11 18:16:30 CEST 2013


 

> -----Original Message-----
>> How do I find and remove the two duplicate rows? 
> Try ?unique()

See also ?duplicated and consider the usage

d[ !duplicated(d), ]

where d is your data frame. But read the 'details' part of the help page closely...

S Ellison

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list