powered by
i.rank(x)
rank
order
i.rank(c(1, 1, 1, 3, 3, 5, 7, 7, 7))
Run the code above in your browser using DataLab