title: seq() function in R
body: <p>I have a question about the <code>seq()</code> function in R. I am using the <code>sqldf</code> package to connect and wrap R code around sql select statements.</p>
  
  <p>I need to run a script 10 times, where each time I select a specified number of rows (I'm creating a control cohort based in a frequency distribution) i.e. something like</p>
  
  <pre><code>SELECT * FROM table
  LIMIT 2
  
  SELECT * FROM table
  LIMIT 4
  </code></pre>
  
  <p>and so on until</p>
  
  <pre><code>SELECT * FROM table
  LIMIT i
  </code></pre>
  
  <p>where <code>i</code> is a sequence specified as <code>(2,4,6,8,10,12,10,9,7,3,1)</code></p>
  
  <p>but if I write:</p>
  
  <p><code>seq(2,4,6,8,10,12,10,9,7,3,1)</code> I am using too many arguments for the <code>seq()</code> function.</p>
  
  <p>How do I get round this in R, as it's not like I want to increment from 1 to 10 in steps of 1 like <code>seq(1,10)</code>.</p>
  
  <p>Hope I have made the question clear!</p>