title: For loop in R with increments
body: <p>I am trying to write a for loop which will increment its value by 2. The equivalent code is c is </p>
  
  <pre><code>for (i=0; i&lt;=78; i=i+2)
  </code></pre>
  
  <p>How do I achieve the same in R?</p>