R语言之排序:sort(),rank(),order()示例

> x<-c(97,93,85,74,32,100,99,67)

> sort(x)

[1] 32 67 74 85 93 97 99 100

> order(x)

[1] 5 8 4 3 2 1 7 6

> rank(x)

[1] 6 5 4 3 1 8 7 2

原文地址:https://www.cnblogs.com/Emily07/p/6108306.html