On Wed, Jun 20, 2012 at 6:24 PM, Jessy <jmahachie@gmail.com> wrote:

> May someone help me with how in R I can rank a vector from highest to
> lowest. i.e  rank 1 (smallest rank) is given to the highest value instead
> of the usual way that it get's the highest rank.
>

How about rank(-v), e.g.,

>
> rank(-c(3,1,4,6,5))
> [1] 4 5 3 1 2


/Christian

	[[alternative HTML version deleted]]

