Learn R Programming

ribiosUtils (version 1.7.7)

rrank.matrix: Get reverse rank orders in each column

Description

Get reverse rank orders in each column

Usage

# S3 method for matrix
rrank(x, ...)

Value

A matrix of the same dimension and attributes of the input matrix, with reverse rank orders of each column

Arguments

x

A matrix

...

Passed to rank

Examples

Run this code
testMatrix <- matrix(c(3,6,4,5,2,4,8,3,2,5,4,7), ncol=3, byrow=FALSE)
rrank(testMatrix)

Run the code above in your browser using DataLab