title: Loop through a vector of vectors
body: <p>When I loop through a vector of vectors, the result of each loop is several vectors. I would expect the result of each loop to be a vector. Please see the following example:</p>
  
  <pre><code>foo &lt;- seq(from=1, to=5, by=1)
  bar &lt;- seq(from=6, to=10, by=1)
  baz &lt;- seq(from=11, to=15, by=1)
  vects &lt;- c(foo,bar,baz)
  for(v in vects) {print(v)}
  
  # [1] 1
  # [1] 2
  # [1] 3
  # [1] 4
  # [1] 5
  # [1] 6
  # [1] 7
  # [1] 8
  # [1] 9
  # [1] 10
  # [1] 11
  # [1] 12
  # [1] 13
  # [1] 14
  # [1] 15
  </code></pre>
  
  <p>This is odd as I would expect three vectors given it (should) iterate three times given the vector, <code>c(foo,bar,baz)</code>. Something like:</p>
  
  <pre><code># [1]  1  2  3  4  5
  # [1]  6  7  8  9 10
  # [1] 11 12 13 14 15
  </code></pre>
  
  <p>Can anyone explain why I am getting this result (15 vectors) and how to achieve the result I am looking for (3 vectors)?</p>