rankings: Evaluate rankings

Description Usage Arguments Value Examples

Description

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

Usage

1
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

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

Example output

      [,1] [,2] [,3] [,4] [,5]
 [1,]    3    6    9    4    3
 [2,]   10    7   10    5    4
 [3,]    4    4    5    3    6
 [4,]    6    5    2   10    1
 [5,]    9    1    6    2    9
 [6,]    2    2    3    1    7
 [7,]    8    3    4    6    8
 [8,]    1    9    8    8   10
 [9,]    5   10    7    7    2
[10,]    7    8    1    9    5

rbvs documentation built on May 2, 2019, 7:31 a.m.