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