powered by
This is simply a wrapper for base::rank(). Higher scores will give higher ranks.
base::rank()
n_rank(x, ties.method = "min")
Numeric vector
A numeric vector
This argument is passed to base::rank() - see there for details.
x <- runif(20) n_rank(x)
Run the code above in your browser using DataLab