This is simply a wrapper for base::rank(). Higher scores will give higher ranks.
base::rank()
n_rank(x, ties.method = "min")
x
A numeric vector
ties.method
This argument is passed to base::rank() - see there for details.
Numeric vector
x <- runif(20) n_rank(x)