> 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