title: R: Extracting the index of the final / last minimum value in a vector
body: <p>I have a vector</p>
  
  <p><code>y &lt;- c(10:1, c(0.1,0.1,0.1))</code></p>
  
  <p>if I do <code>which.min(y)</code>, it returns the index <code>11</code>. 
  However, I want it to return the last / final index, where the minimum has been seen. 
  I have a clumsy of doing this, which is: </p>
  
  <p><code>rev(which(y == min(y)))[1]</code></p>
  
  <p>But is there a better way to do this  ?</p>