title: Finding the number that is reapeated consecutively the most in a vector
body: <p>I have the following vector:</p>
  
  <pre><code>essaie &lt;- "23690,55050,127789,64253,130127,63093,63093,63093,108374,63093,63093"
  essaie_z &lt;- c(as.numeric(unlist(strsplit(essaie, ","))))
  </code></pre>
  
  <p>I want to know which number repeats itself consecutively the most and how many time it does. Basically, I want to know:</p>
  
  <p>Number that repeats itself consecutively the most: 63093
  How many times: 3</p>
  
  <p>How can I do that in r?</p>
  
  <p>thanks,</p>