Rank-func
This function takes a dataset, sorts it in ascending/descending order internally and returns the ranked indexes. If duplicated values exist in dataset, it will average the ranked indexes of the replica and reture the average number for each replica.
This function works similarly as sort.rank(Dataset1, Dataset2[, n]).
dataset sort(dataset vd[, int n])
vd
n
Returns a dataset of ranked indexes in the specified sorting order.
newbook; col(A) = uniform(50, 5); col(B) = rank(col(a),1); col(B)[C]$ = "RANK";
sort, sort command, sort object.