Convert a numeric ranking variable to fractional ranks in (0, 1) using
average ranks for ties. This is the standard rank definition used in
concentration-index calculations.
Arguments
- x
An atomic vector to rank.
- ties_method
Tie-handling method passed to
data.table::frankv(). Only"average"is supported.- na_rm
Logical scalar. If
TRUE, missing values are dropped before ranking. IfFALSE, missing values trigger an error.