[R] using the function unique(), but asking it to ignore a column of a data.frame
yee at post.harvard.edu
Mon Jul 9 15:12:16 CEST 2007
Take for example the following data.frame:
I'd like to be able to use unique(sample.data.frame), but have
unique() ignore column a when determining the unique elements.
However, I figured that this would be setting for incomparables=, but
it appears that this funcationality hasn't been incorporated. Is
there a work around for this, i.e. to be able to get unique to only
look at selected columns of a data frame?
More information about the R-help