Re: [R] Remove duplicated rows

2010-04-26 Thread chrisli1223
Thank you Petr, Gustaf and Gabor. Your help is much appreciated. I have tried: dataset[!duplicated(dataset[,-2]),] and it solves my problem. Thanks, Chris -- View this message in context: http://r.789695.n4.nabble.com/Remove-duplicated-rows-tp2023065p2065997.html Sent from the R help mailing

Re: [R] Remove duplicated rows

2010-04-23 Thread Gabor Grothendieck
Try this: DF[!duplicated(DF[-2]),] On Thu, Apr 22, 2010 at 10:05 PM, chrisli1223 wrote: > > Hi all, > > I have a dataset similar to the following > > Name    Date    Value > A       1/01/2000       4 > A       2/01/2000       4 > A       3/01/2000       5 > A       4/01/2000       4 > A       5

Re: [R] Remove duplicated rows

2010-04-23 Thread Gustaf Rydevik
On Fri, Apr 23, 2010 at 4:05 AM, chrisli1223 wrote: > > Hi all, > > I have a dataset similar to the following > > Name    Date    Value > A       1/01/2000       4 > A       2/01/2000       4 > A       3/01/2000       5 > A       4/01/2000       4 > A       5/01/2000       1 > B       6/01/2000  

[R] Remove duplicated rows

2010-04-22 Thread chrisli1223
Hi all, I have a dataset similar to the following NameDateValue A 1/01/2000 4 A 2/01/2000 4 A 3/01/2000 5 A 4/01/2000 4 A 5/01/2000 1 B 6/01/2000 2 B 7/01/2000 1 B 8/01/2000 1 I would like R