On Tue, May 11, 2010 at 9:07 PM, Jim Bouldin 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, 3))
subset(dat, !d
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
onl
2 matches
Mail list logo