Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: sort order

Quantlet: rank
Description: Computes the rank vector of a given vector.

Usage: r = rank (x)
Input:
x n vector
Output:
r n vector consisting of the ranks

Note:

Example:

library("xplore")

x = #(4,1,6,5,4)

rank (x)

Result:



Contents of r

[1,]   2.5 

[2,]     1 

[3,]     5 

[4,]     4 

[5,]   2.5 


Library: xplore
See also: sort order

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: TTK, 961125
(C) MD*TECH Method and Data Technologies, 21.9.2000