I hope this is what you want.
## Exclude replicated rows
(DF1 <- unique(DF))
## Sort the data
(DF2 <- DF1[order(DF1$V1, DF1$V2, DF1$V3, DF1$V4),])
-
A R learner.
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-extract-rows-from-data-frame-based-on-unique-variable-gro
Tena koe Mike
duplicated() might be what you require.
HTH ...
Peter Alspach
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Michael H
> Sent: Friday, 21 May 2010 6:37 a.m.
> To: r-help@r-project.org
> Subject: [R] How to ex
2 matches
Mail list logo