Ranks of the values of a vector
Ranks of the values of a vector.
Rank(x,method = "average",descending = FALSE)
x |
A numerical vector with data. |
method |
a character string for choosing method. Must be one of "average", "min", "max". |
descending |
A boolean value (TRUE/FALSE) for sorting the vector in descending order. By default sorts the vector in ascending. |
The ranks of the values are returned, the same job as "rank". If you want you can choose descending/ascending order for all methods.
A vector with the ranks of the values.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
x <- rnorm(100) a1 <- Rank(x) a2 <- rank(x)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.