Options for rank.
Optional
Missing values: "last" (default, R's na.last = TRUE) ranks them after the others, "first" (FALSE) before them, "keep" leaves them NaN.
"last"
na.last = TRUE
"first"
FALSE
"keep"
NaN
Ranks of tied values. Default "average".
"average"
Options for rank.