Message-ID: <1051051584.3ea5c640809e5@my.uq.edu.au>
Date: 2003-04-22T22:46:24Z
From: Andrew C. Ward
Subject: Eliminating repeated elements in a vector
In-Reply-To: <16037.50437.848602.939080@0-e0-98-8a-c5-4a.dhcp.lbl.gov>
> x <- c(1,1,2,3,4,4,5)
> x
[1] 1 1 2 3 4 4 5
> x <- unique(x)
> x
[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>:
> 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?
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>