title: Merging multiple csv files in R
body: <p>I have around 100 csv files with common headers, which i want to merge. The headers are "Lat", "Long" and "value". I am trying to merge all the csv files such that the output would be</p>
  
  <pre><code>"Lat" "Lon" "Value1" "Value2"..."Value 100" 
  </code></pre>
  
  <p><code>Lat</code> and <code>Lon</code> columns are identical for all of the csv files. Merging two files is easy  </p>
  
  <pre><code>merge(data.frame1, data.frame2, by=c('Lat','Lon'))
  </code></pre>
  
  <p>However, I tried the following code which didnt work:</p>
  
  <pre><code>file_list &lt;- list.files(~/source)   
  list_of_files &lt;- lapply(file_list, read.csv)  
  m1 &lt;- merge_all(list_of_files, by=c("Lat","Lon"), all=TRUE)  
  </code></pre>
  
  <p>which throws the error  </p>
  
  <pre><code>Error in merge.data.frame(dfs[[1]], Recall(dfs[-1]), all = TRUE, sort = FALSE,  : 
    formal argument "all" matched by multiple actual arguments.  
  </code></pre>
  
  <p>Can anyone help me in this regard.</p>