title: R Return max count in vector
body: <p>How would you return the number that repeats the most in a number vector?</p>
  
  <p>For example I would like to return 1 in </p>
  
  <pre><code>x &lt;- c(1,1,2)
  </code></pre>