s-news
[Top] [All Lists]

Re: Extracting values from a vector

To: François-Léonce Charron <fcharron@nbnet.nb.ca>
Subject: Re: Extracting values from a vector
From: Sundar Dorai-Raj <sundar.dorai-raj@pdf.com>
Date: Wed, 21 Aug 2002 14:17:02 -0500
Cc: s-news@lists.biostat.wustl.edu
Organization: PDF Solutions, Inc.
References: <5.1.0.14.2.20020821155250.00a7dc80@pop.nbnet.nb.ca>
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/


<Prev in Thread] Current Thread [Next in Thread>