Skip to content

5 messages · Francisco J Molina, Andrew C. Ward, Sundar Dorai-Raj +2 more

#
Subject: Eliminate repeated components from a vector
X-Mailer: VM 7.00 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
Reply-To: fjmolina at lbl.gov
FCC: /home/f/.xemacs/mail/sent


Does anyone know how I can eliminate repeated elements from a vector?
#
[1] 1 1 2 3 4 4 5
[1] 1 2 3 4 5


Regards,

Andrew C. Ward

CAPE Centre
Department of Chemical Engineering
The University of Queensland
Brisbane Qld 4072 Australia
andreww at cheque.uq.edu.au


Quoting Francisco J Molina <fjmolina at lbl.gov>:
#
Francisco J Molina wrote:
?unique
?duplicated

Sundar
#
On Tue, 22 Apr 2003, Francisco J Molina wrote:

            
An easy one:

?unique

David Scott

_________________________________________________________________
David Scott	Department of Statistics, Tamaki Campus
		The University of Auckland, PB 92019
		Auckland	NEW ZEALAND
Phone: +64 9 373 7599 ext 86830		Fax: +64 9 373 7000
Email:	d.scott at auckland.ac.nz 


Graduate Officer, Department of Statistics

Webmaster, New Zealand Statistical Association:
        http://www.stat.auckland.ac.nz/nzsa/
#
Francisco J Molina wrote:

            
Try "unique".

Rick B.