[R] add to vector without duplicatation

Nicky Chorley nick.chorley at gmail.com
Thu Aug 28 09:05:10 CEST 2008


2008/8/28 Yuan Jian <jayuan2008 at yahoo.com>:
> Hi,
>
> I try to add items to a vector, but when the it has existed, the item should be skipped.
> does anyone know how to do it a simple way?

You might be able to use unique().

Regards,

Nicky Chorley



More information about the R-help mailing list