Report question

Question: select rows with largest value of variable within a group in r