sortmatrix: Sort matrix by label
Description
Sorts matrix by label
Usage
sortmatrix(mat, labs = dimnames(mat)[[2]])
Value
Returns a sorted matrix by label, created from mat
.
Arguments
- mat
A mu+ segment matrix.
- labs
A label vector which has the same number of columns as
mat
.