title: how to subset every 6 rows in R?
body: <p>I have to subset the data of 6 rows every time. How to do that in R?</p>
  <pre><code>data:
  col1 : 1,2,3,4,5,6,7,8,9,10
  col2 : a1,a2,a3,a4,a5,a6,a7,a8,a9,a10
  </code></pre>
  <p>I want to do subset of 6 rows every time. First subset of the rows will have 1:6 ,next subset of the rows will have 7:nrow(data). I have tried using <code>seq</code> function.</p>
  <pre><code>seqData &lt;- seq(1,nrow(data),6)
  output: It is giving 1 and 7th row but I want 1 to 6 rows first, next onwards 7 to nrow(data).
  </code></pre>
  <p>How to get output like that.</p>