Skip to content
Back to formatted view

Raw Message

Message-ID: <CAG_r7O5MVc34e5e4wdDZhweYTmZ_YxXoku9R8DJvvUav9cTQnQ@mail.gmail.com>
Date: 2012-10-12T07:05:43Z
From: Henri-Paul Indiogine
Subject: rank() not doing really what I want

Greetings!

I have the following vector already in decreasing order:

125, 124, 111, 108, 107, 107, 105, ....

I want to find out the rank, so I do the following:

rank(-x, ties.method="min")

Then I get the following:

1, 2, 3, 4, 5, 5, 7, ....

but that is not what I want.  I want it to give:

1. ,2, 3, 4, 5 ,5, 6, ....

There should be no "jumps" in the sequence.

How would that be possible?

Thanks,
Henri-Paul

-- 
Henri-Paul Indiogine

Curriculum & Instruction
Texas A&M University
TutorFind Learning Centre
http://www.tutorfind.ca

Email: hindiogine at gmail.com
Skype: hindiogine