rankedMatrix | R Documentation |
Calculate a ranked matrix
rankedMatrix(object, ...) ## S4 method for signature 'matrix' rankedMatrix( object, MARGIN = 2L, method = c("increasing", "decreasing", "bidirectional"), tiesMethod = c("average", "first", "last", "random", "max", "min") )
object |
Object. |
MARGIN |
|
method |
|
tiesMethod |
|
... |
Additional arguments. |
Ties are resolved automatically by calculating the average.
See the ties.method
parameter in rank()
for details.
matrix
.
Updated 2021-02-04.
rank()
.
Not to be confused with Matrix::rankMatrix()
.
data(matrix_lfc, package = "AcidTest") object <- matrix_lfc ## Increasing (negative to positive). rankedMatrix(object, method = "increasing") ## Decreasing (positive to negative). rankedMatrix(object, method = "decreasing") ## Bidirectional. rankedMatrix(object, method = "bidirectional")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.