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