Skip to content
Prev 278184 / 398506 Next

Removing rows in dataframe w'o duplicated values

Sorry, you need this first:

L <- split(dat, dat$id)
do.call(rbind, lapply(L, function(d) if(nrow(d) > 1) return(d)))

D.
On Tue, Nov 22, 2011 at 10:38 AM, Dennis Murphy <djmuser at gmail.com> wrote: