Description Usage Arguments Details Value
Give the rank number to input numeric vector, the same rank number to the same value.
1 | rankNumber(vector, decreasing = TRUE)
|
vector |
numeric, the vector will be sorted and given the rank number |
decreasing |
logical, default is TRUE, used in function |
For the same value in an ordered vector, the rank number should be the same, the next value will be given its right ranking number, like, 1, 2, 3, 3, 5...
The rank vector of input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.