[R] I don't understand the 'order' function

Julio Sergio juliosergio at gmail.com
Tue Apr 16 23:37:47 CEST 2013

William Dunlap <wdunlap <at> tibco.com> writes:

> I think Duncan said that order and rank were inverses (if there are no 
ties).  order() has
> period 2 so order(order(x)) is also rank(x) if there are no ties.  E.g.,

Thanks William! This is very interesting. So, applying order two times I can 
have a rank index for each element.


More information about the R-help mailing list