Utility function to rank columns of matrix

rank_matrix(X)

# S3 method for dgCMatrix
rank_matrix(X)

# S3 method for matrix
rank_matrix(X)

Arguments

X

feature by observation matrix.

Value

List with 2 items

  • X_ranked - matrix of entry ranks

  • ties - list of tied group sizes

Examples


data(exprs)
rank_res <- rank_matrix(exprs)