title: How to use a string to refer to a data frame in R?
body: <p>I have 3 data frames called 'first', 'second' and 'third'</p>
  
  <p>I also have a string vector with their names in it </p>
  
  <pre><code> frames &lt;- c("first","second","third")
  </code></pre>
  
  <p>I would like to loop through the vector and refer to the data frames</p>
  
  <pre><code>for (i in frames) {
  
    #set first value be 0 in each data frame
    i[1,1] &lt;- 0
  }
  </code></pre>
  
  <p>This does not work, what am I missing?</p>