Library: | xplore |
See also: | sort rank |
Quantlet: | order | |
Description: | Computes the order vector of a given vector. |
Usage: | o = order (x) | |
Input: | ||
x | n vector | |
Output: | ||
o | n vector consisting of the order values |
library("xplore") x = #(4,1,6,5) order(x)
Contents of o [1,] 2 [2,] 1 [3,] 4 [4,] 3