roworder {docopulae} | R Documentation |
Matrix Ordering Permutation
Description
roworder
returns a permutation which rearranges the rows of its first argument into ascending order.
Usage
roworder(x, ...)
Arguments
x |
a matrix. |
... |
other arguments passed to |
Value
roworder
returns an integer vector.
See Also
Examples
x = expand.grid(1:3, 1:2, 3:1)
x = x[sample(seq1(1, nrow(x)), nrow(x)),]
x
ord = roworder(x)
ord
x[ord,]
[Package docopulae version 0.4.0 Index]