Merging multiple csv files in R

前端 未结 2 1851
再見小時候
再見小時候 2021-01-25 03:58

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 out

2条回答
  •  醉梦人生
    2021-01-25 04:33

    You can use Reduce and the plain merge:

    m1 <- Reduce(function(old, new) { merge(old, new, by=c('Lat','Lon')) }, list_of_files)
    

提交回复
热议问题