roworder: Matrix Ordering Permutation

Description Usage Arguments Value See Also Examples

Description

roworder returns a permutation which rearranges the rows of its first argument into ascending order.

Usage

1

Arguments

x

a matrix.

...

other arguments passed to order.

Value

roworder returns an integer vector.

See Also

order

Examples

1
2
3
4
5
6
7
8
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,]


Search within the docopulae package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.