Command Reference : Matrix Language Reference
  
 
@colranks
Matrix where each column contains ranks of the row values.
Syntax: @colranks(m[, o])
m: matrix, vector
o: (optional) o
Return: matrix, vector
Returns a matrix where each column contains the ranks of the values of the corresponding column of m.
The option o controls the direction of the ranking: ā€œaā€ (ascending - default) or ā€œdā€ (descending).
Examples
matrix a = @colrank(m1, "d")
Cross-references
See also @ranks, @rowranks, @capplyranks, @sort, @colsort, and @permute.