title: Creating an Array of Dataframes in R
body: <p>I'm trying to create an array of dataframes in r. I have many many csv files, and I want to put them all into separate data frames using a loop. </p>
  
  <pre><code>data1[1] &lt;- "C:/data1.csv"
  data1[2] &lt;- "C:/data2.csv"
  
  for(i in 1:2) {
   data2[i] &lt;- data1[i][,-1]
   rownames(data2[i]) &lt;- data1[i][,1] }
  </code></pre>
  
  <p>Any suggestions on how to make this work?</p>