title: which.max ties method in R
body: <p><code>which.max</code> and <code>which.min</code> will return the smallest index of the max or min value if there are ties. </p>
  
  <p>Is there a way around this so that the largest index is returned <strong>without</strong> affecting the efficiency of the function?</p>
  
  <p><code>max.col</code> has this exact functionality, but I am dealing with a vector not a matrix.</p>