Ranks of the values of a vector {Rfast}R Documentation

Ranks of the values of a vector

Description

Ranks of the values of a vector.

Usage

Rank(x,method = "average",descending = FALSE)

Arguments

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.

Details

The ranks of the values are returned, the same job as "rank". If you want you can choose descending/ascending order for all methods.

Value

A vector with the ranks of the values.

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

See Also

colRanks, correls

Examples

x <- rnorm(100)
a1 <- Rank(x)
a2 <- rank(x)

[Package Rfast version 2.0.0 Index]