title: Rbind multiple Data Frames in a loop
body: <p>I have a bunch of data frames that are named in the same pattern "dfX.csv" where X represents a number from 1 to 67. I loaded them into seperate dataframes using following piece of code:</p>
  
  <pre><code>folder &lt;- mypath
  file_list &lt;- list.files(path=folder, pattern="*.csv") 
  for (i in 1:length(file_list)){
    assign(file_list[i],      
    read.csv(paste(folder, file_list[i], sep=',', header=TRUE))     
  )}
  </code></pre>
  
  <p>What I'm trying to do is merge/rbind them into a single huge dataframe.</p>
  
  <pre><code>for (i in 1:length(file_list)){
  df_main &lt;- rbind(df_main, df[[i]].csv)
  }
  </code></pre>
  
  <p>However using that I'm getting an error: </p>
  
  <pre><code>Error: unexpected symbol in:
  "for (i in 1:length(file_list)){
      df_main &lt;- rbind(df_main, df[[i]].csv"
  </code></pre>
  
  <p>Any idea what might be causing an issue &amp; whether there's a simpler way of doing things. </p>