Day of the Race in R: How do I write a function that finds the place of the runner?


race_results <- c("Gi", "Francesca", "Lea", "Vivian", "Jessica", "Esther", "Mary", "Yasmina", "Megan", "Janet", "Tiffany", "Kishan", "Feng", "Z", "Tina")


# write find_place() here:

find_place <- function(runner) {

return race_results...?

}

The above is the list that was provided, and I started trying to write a function that would find the place of the runner based on the input of their name, but I wasn’t sure how to do that. The list is in order from first place to last place.