n_prank {COINr} | R Documentation |
Calculates percentile ranks of a numeric vector using "sport" ranking. Ranks are calculated by base::rank()
and converted to percentile ranks. The ties.method
can be changed - this is directly passed to
base::rank()
.
n_prank(x, ties.method = "min")
x |
A numeric vector |
ties.method |
This argument is passed to |
Numeric vector
x <- runif(20)
n_prank(x)