title: Rank vector with some equal values
body: <p>I got a question. I have a really large vector and some of its values are equal. What I want to get is the rank of its values, the biggest value would be rank #1, the smallest the last rank (in the example below rank #6). I tried <code>rank(-x, ties.method = "min")</code> but the solution is not correct in my case.</p>
  
  <pre><code>x &lt;- c(1,10,2,5,5,8,3)
  Rank &lt;- rank(-x,ties.method = "min")
  Rank
  [1] 7 1 6 3 3 2 5
  </code></pre>
  
  <p>But Rank should be: </p>
  
  <pre><code>Rank
  [1] 6 1 5 3 3 2 4 
  </code></pre>
  
  <p>Can you help me? Why is the 4th rank missing?</p>
  
  <p>Thank you!</p>