Calculates Borda scores as rank(x) - 1
.
Arguments
- x
A numeric vector
- ties.method
This argument is passed to
base::rank()
- see there for details.
Examples
x <- runif(20)
n_borda(x)
#> [1] 13 14 5 10 11 19 17 16 12 4 7 8 9 3 18 2 0 6 15 1