Given a number of points, this function returns the corresponding
rank based on the points–ranking table (pts_rk_m (default) or
pts_rk_for any data.frame with columns pts and rk supplied.
Examples
# \donttest{
# Load the default dataset
data(pts_rk_m)
# Compute rank for various point values
points2rank(5000) # uses pts_rk_m by default
#> [1] 1
points2rank(1500, pts_rk_m)
#> [1] 2001
# }