Skip to content
Prev 278183 / 398506 Next

Removing rows in dataframe w'o duplicated values

Hi:

Here's one way:

do.call(rbind, lapply(L, function(d) if(nrow(d) > 1) return(d)))
    id value value2
1.1  1     5      1
1.2  1     6      4
1.3  1     7      3
3.5  3     5      4
3.6  3     4      3

HTH,
Dennis
On Tue, Nov 22, 2011 at 9:43 AM, AC Del Re <delre at wisc.edu> wrote: