On Wed, Jun 25, 2008 at 12:19 PM, Daren Tan <[EMAIL PROTECTED]> wrote: > > > unique(c(1:10,1)) gives 1:10 (i.e. unique values), is there any method to get > only 2:10 (i.e. values that are unique) ? > >
Try this: setdiff(x, x[duplicated(x)]) ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.