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

______________________________________________
[email protected] 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.


______________________________________________
[email protected] 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.

Reply via email to