n_prank {COINr} | R Documentation |
Normalise using percentile ranks
Description
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()
.
Usage
n_prank(x, ties.method = "min")
Arguments
x |
A numeric vector |
ties.method |
This argument is passed to |
Value
Numeric vector
Examples
x <- runif(20)
n_prank(x)
[Package COINr version 1.1.14 Index]