title: Subsetting data at an irregular interval in an R function
body: <p>I have a function like this </p>
  
  <pre><code>extract = function(x)
  {
  a = x$2007[6:18]
  b = x$2007[30:42]
  c = x$2007[54:66]
  }
  </code></pre>
  
  <p>the subsetting needs to continue up to 744 in this way. I need to skip the first 6 data points, and then pull out every other 12 points into a new object or a list. Is there a more elegant way to do this with a for loop or apply?</p>