title: R- use for loop run through multiple data.frames named with a pattern
body: <p>I want to use a for loop to perform the same function on multiple similarly named data.frames.  Is there a way to do this? This is my current attempt: </p>
  
  <pre><code>for(i in colnames(SellList)){
    as.data.frame([i].sub) &lt;- [[paste("SaleAmount")]] &lt;- SellList[1,i]
  }
  </code></pre>
  
  <p>where the data.frames being pasted to are named A.sub, B.sub, etc. and the column names are A, B, etc.</p>