title: r get variable name that has maximum
body: <p>I've searched online for a while now but not really finding answers to this specific question. 
  maybe im not using the right key words... but if there's already a thread on this question, please direct me to it! </p>
  
  <p>so let's say the data looks like this:</p>
  
  <p><code>a = 3
  b = 5</code></p>
  
  <p>now i want to find out which one is larger, so i do:</p>
  
  <pre><code>max(a,b)
  </code></pre>
  
  <p>this will only return me the "5", but i want it to return "b"
  i tried using which() but it keep saying "which is not logical"
  i also tried deparse() but i get a string of "5"</p>
  
  <p>thanks for any help in advance!</p>