How to select the rows with maximum values in each group with dplyr? [duplicate] How to select the rows with maximum values in each group with dplyr? [duplicate] r r