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



Author: T. T. Koetter, 19961125 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006