unique()
François-Léonce Charron wrote:
>
> Hello all !
>
> Is there an easy way to extract one of every different value from a
> vector. This example might explain better:
>
> original vector
> 1,2,4,2,5,2,1,1,1,6
>
> new vector
> 1,2,4,5,6
>
> I'm actually working with character values (country names) but I assume the
> process would be the same
>
> Thanks !
> François-Léonce Charron
>
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu. To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message: unsubscribe s-news
--
Sundar Dorai-Raj, Ph.D.
Statistical Methods Engineer
PDF Solutions, Inc.
Dallas TX
(972) 889-3085 x216
(214) 392-7619 cell
sundar.dorai-raj@pdf.com
http://www.pdf.com/
|