Statistics
OrderByRank
order data items according to their ranks
Calling Sequence
Parameters
Description
Options
Notes
Examples
OrderByRank(X, R, options)
X
-
data sample
R
ranks
options
(optional) equation(s) of the form option=value where option is one of order or unique; specify options for the OrderByRank function
The OrderByRank command orders the elements/rows of X according to their ranks.
The first parameter X is the data set - given as e.g. a Vector.
The second parameter R is the ranks data (also specified as a data set).
The options argument can contain one or more of the options shown below.
order = ascending or descending -- Indicate whether the elements of X should be sorted in the ascending or descending order. The default value is order=ascending.
unique=truefalse -- If this option is set to true, all multiple occurrences of elements from X will be removed. The default value is unique=false.
The OrderByRank command creates a copy of the original Array.
Sort two arrays simultaneously.
Error, (in Statistics:-OrderByRank) duplicate rank: 3
See Also
Statistics[Computation]
Statistics[Rank]
Statistics[Sort]
Download Help Document