[R] Aggregate by First case

Karl Ove Hufthammer Karl.Hufthammer at math.uib.no
Fri May 30 09:49:46 CEST 2008


Dimitris Rizopoulos:

> dat[!duplicated(dat$Id), ]

Very elegant. I didn't know about 'duplicated()' before now.
Seems like a very useful function.

-- 
Karl Ove Hufthammer



More information about the R-help mailing list