[R] Function rank() for data frames (or multiple vectors)?

Sebastian Bauer Sebastian.Bauer at charite.de
Thu Aug 25 13:56:31 CEST 2011


Hi!

On 08/24/2011 07:46 PM, David Winsemius wrote:
>> I was looking for an elegant solution ;) In the real case I have double
>> values and this would be quite inefficient then.
>
> Still no r-code:
>
> Then what about rank(order(...) , further-ties.method-argument) ?

I think that, as order() always gives a different value for each 
element, rank(order()) would return the same result as order() alone.

Bye,
Sebastian



More information about the R-help mailing list