[R] removing duplicate rows

2010-05-11 Thread Jim Bouldin
I'm trying to identify and remove rows in a data frame that are duplicated only on particular columns within it (i.e. not on all columns). The unique function looks for uniqueness across all columns of a data frame. Identifying unique rows based only on specific columns of interest returns only

Re: [R] removing duplicate rows

2010-05-11 Thread Sean Anderson
On Tue, May 11, 2010 at 9:07 PM, Jim Bouldin jrboul...@ucdavis.edu wrote: I'm trying to identify and remove rows in a data frame that are duplicated only on particular columns within it (i.e. not on all columns). This is probably the cleanest way: dat - data.frame(x = c(1, 2, 3), y = c(1, 1,