I have a list of competitors and points from the tournament. Many competitors are connected. I need a way to rank them in R, so, for example, if four competitors are tied to fourth place, the result might look like this:
Competitor A: 1
Competitor B: 2
Competitor C: 3
Competitor D: 4
Competitor E: 4
Competitor F: 4
Competitor G: 4
Competitor F: 8
So, the next rank after the tie, and not 5, will be 8 (because four participants took slots from 4-7).
I know this is a bit contrasting intuitive, but if anyone has any ideas, that would be much appreciated. Thank you
data
v1 <- setNames(c(4, 5, 2, 7, 7, 7, 7, 9), paste('Competitor', LETTERS[1:8]))
source
share