Search all packages and functions
ThreeWay (version 1.1.3)
In case of vectors, an ordering of its elements in ascending order is produced; in case of matrices, the ordering in ascending order refers to every column.
Vector or matrix to be ordered
Vector or matrix with the elements sorted in ascending order
Vector or matrix with the ordering indices
# vector x <- rnorm(6) y <- ord(x) # matrix X <- matrix(rnorm(6*3),ncol=3) Y <- ord(X)