powered by
Get reverse rank orders in each column
# S3 method for matrix rrank(x, ...)
A matrix of the same dimension and attributes of the input matrix, with reverse rank orders of each column
A matrix
Passed to rank
rank
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