title: Using list of strings to access data frame variables in R
body: <p>I have a series of data frames with the same columns:</p>
  
  <pre><code>d1 &lt;- data.frame('a' = c(1,2), 'b' = c('x','y'))
  d2 &lt;- data.frame('a' = c(3,4), 'b' = c('z','m'))
  d3 &lt;- data.frame('a' = c(5,6), 'b' = c('n','o'))
  </code></pre>
  
  <p>I want to bind them together. One way is by doing this:</p>
  
  <pre><code>do.call("rbind", list(d1, d2, d3)) # this works
  </code></pre>
  
  <p>However, this inefficient when you have many data frames. I can create a string that generates the data frame names:</p>
  
  <pre><code>df.name &lt;- rep(paste0('d',c(1:3))) # creates a list 'd1','d2','d3'
  do.call("rbind", list(df.name)) # rbinds 'd1','d2','d3' as strings
  </code></pre>
  
  <p>However, when you do this it binds 'd1','d2','d3' as strings. What would I need to do so R will treat the list values as variables representing data frames? </p>