df <- data.frame( Place = c(1, 1, 1, 1, 1, 1), Name = c("Sally Swimfast",
"Bonnie Bubbles", "Kylie Kicker", "Riley Ripit", "Nathan Nosplash", "Tim
Tuck"), Team = c("KVAC", "UBAM", "MERC", "Upstate Diving", "Nickel City
Splash", "Finger Lakes Diving"), Event = c(rep("Women 200 Freestyle", 3),
rep("Boys 1 mtr Diving", 3)), Prelims = c("2:00.00", "1:59.99", "2:01.50",
"300.00", "305.00", "200.00"), Finals = c("1:58.00", "1:59.50", "2:00.50",
"310.00", "307.00", "220.00"), Meet = c("Summer 2021", "Fall 2020", "Champs
2020","Regional Champs 2021", "Other Regional Champs 2021", "City Champs
2021" ))
df %>%
place() %>%
dplyr::arrange(Event)
df %>%
place(result_col = Prelims) %>%
dplyr::arrange(Event)
df %>%
place(result_col = "Prelims") %>%
dplyr::arrange(Event)
Run the code above in your browser using DataLab