rankMatrix: Get the ranking matrix.

Description Usage Arguments Value Examples

View source: R/tests.R

Description

This function returns, given a matrix, the ranking of the colums in each row.

Usage

1
rankMatrix(data, decreasing = TRUE, ...)

Arguments

data

The matrix to rank.

decreasing

Logical value indicating whether the top ranked has to be the highest value or not.

...

Not used

Value

A matrix containing the per-row rankings. In case of ties, the mean rank is obtained (e.g, if there is a tie between the 4th and the 5th column, both are assigned a mean rank of 4.5)

Examples

1
2
data(data_gh_2008)
rankMatrix(data.gh.2008)

scmamp documentation built on May 1, 2019, 10:10 p.m.