SyntaxFix
Write A Post
Hire A Developer
Questions
Another option is slice
slice
library(dplyr) group %>% group_by(Subject) %>% slice(which.max(pt)) # Subject pt Event # <dbl> <dbl> <dbl> #1 1 5 2 #2 2 17 2 #3 3 5 2