title: Predict the next values based on the given data in R
body: <p>I have a vector which represents violations in each year.How to predict the violations in the next years in R.</p>
  
  <pre><code>year &lt;- c(190519, 223721, 235321, 101934)
  </code></pre>
  
  <p>Please help me out</p>