title: Convert a sequence to a sequence of ODD or Even in R
body: <p>If I have a sequence of numbers within a dataframe - is it possible to create a new column that follows the sequence but shows only the odd or even - heres an example:</p>
  
  <pre><code>SEQ      ODDSEQ   EVENSEQ
  1        1        2
  1        1        2
  1        1        2
  2        3        4
  2        3        4
  2        3        4
  3        5        6
  3        5        6
  3        5        6
  4        7        8
  4        7        8
  4        7        8
  </code></pre>
  
  <p>So SEQ is what I have right now...a repeated sequence, I'd like to create columns 2 &amp; 3..? I know Modulo is somehow involved bu I can quite get it.</p>
  
  <p>Any ideas..?
  Paul</p>