title: rbind data.frame outputs from a loop
body: <p>I want to rbind a loop that generates data.frames. Here's a [incorrect] loop of the general idea I'm looking for. </p>
  
  <pre><code>for (i in 1:2){
  a &lt;- c(2, (i+10))
  b &lt;- c((i+10)), 5))
  c[i] &lt;- data.frame(a,b)
  }
  rbind(c)
  </code></pre>
  
  <p>I want an output like this:</p>
  
  <pre><code>2  11
  11  5
  2  12
  12  5
  </code></pre>
  
  <p>This question has been asked before, but the answer was a direct solution, with no explanation. I don't know how to read it. It involved <code>do.call</code> and <code>mget</code>.</p>