When there are duplicate rows with one column being different (Rate), how do you remove the duplicates that are smaller - keeping the higher value Rate and not altering the other data. I want to conditionally select, when there are duplicates, the higher value in the Rate column. Any tips? I did a group_by and summarised a count to find duplicates. I filtered down the df to the duplicates and removed the smaller values with a filter using & and was going to rbind it back but there has to be a quicker way?