s-news
[Top] [All Lists]

Extracting values from a vector

To: s-news@lists.biostat.wustl.edu
Subject: Extracting values from a vector
From: François-Léonce Charron <fcharron@nbnet.nb.ca>
Date: Wed, 21 Aug 2002 15:55:38 -0300
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



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