Learn R Programming

rbvs (version 1.0.2)

rankings: Evaluate rankings

Description

Returns the non-increasing order of the values in the columns of x. Ties are solved at random.

Usage

rankings(x, k.max)

Arguments

x
Numeric matrix.
k.max
Integer. Indices of k.max largest elements are returned.

Value

Matrix with the indices corresponding to the k.max largest values in x.

Examples

Run this code
omega <- abs(matrix(rnorm(100*5), nrow = 10, ncol = 5))
rankings(omega, k.max = 10)

Run the code above in your browser using DataLab