-- Eredeti üzenet --
Feladó: Dévaványai Agamemnón lt;devavan...@citromail.hugt;CÃmzett:
r-...@r-project.org, r-...@r-project.orgelküldve: 2010. július 29.
16:29Tárgy : duplicates
Sorry!
I try it again
Dear R Users!
I have a dataframe with duplicatecases. Var1 duplicated by
a given body of data.
~ John Tukey
-Oorspronkelijk bericht-
Van: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] Namens Dévaványai Agamemnón
Verzonden: donderdag 29 juli 2010 16:31
Aan: r-help@r-project.org
Onderwerp: [R] Fwd: duplicates
-- Eredeti
Hi,
Please try ?rle
t.x - x[order(x[,1],x[,2]),]
t.x[cumsum(rle(t.x[,1])$lengths),]
-
A R learner.
--
View this message in context:
http://r.789695.n4.nabble.com/Fwd-duplicates-tp2306555p2306617.html
Sent from the R help mailing list archive at Nabble.com.
3 matches
Mail list logo