title: Generate sequence with alternating increments in R?
body: <p>I want to use R to create the sequence of numbers 1:8, 11:18, 21:28, etc. through 1000 (or the closest it can get, i.e. 998). Obviously typing that all out would be tedious, but since the sequence increases by one 7 times and then jumps by 3 I'm not sure what function I could use to achieve this. </p>
  
  <p>I tried <code>seq(1, 998, c(1,1,1,1,1,1,1,3))</code> but it does not give me the results I am looking for so I must be doing something wrong.</p>