Re: [R] Eliminating repeated elements in a vector

About this list Date view Thread view Subject view Author view Attachment view

From: Andrew C. Ward (s195404@student.uq.edu.au)
Date: Wed 23 Apr 2003 - 08:46:24 EST


Message-id: <1051051584.3ea5c640809e5@my.uq.edu.au>


> 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@cheque.uq.edu.au

Quoting Francisco J Molina <fjmolina@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@lbl.gov
> FCC: /home/f/.xemacs/mail/sent
>
>
> Does anyone know how I can eliminate repeated elements from a
> vector?
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:43 EST