[R] delete duplicated conditional
Christian Schulz
chschulz at email.de
Fri Aug 28 13:40:35 CEST 2009
i get it.
aposSorted <- apos[order(apos[,620],decreasing=TRUE),]
nodups <- aposSorted[!duplicated(aposSorted[,1]),c(1,620)]
> Hi,
>
> have anybody a hint, how i could keep the duplicated with a condition
> in a second column,
> i.e. maximum in column 620.
> nodups <- apos[!duplicated(apos[,1]),c(1,620)]
>
> many thanks
> Christian
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list