Trying to merge multiple csv files in R

前端 未结 6 1098

I\'m attempting to merge multiple csv files using R. all of the CSV files have the same fields and are all a shared folder only containing these CSV files. I\'ve attempted

6条回答
  •  一生所求
    2020-12-03 22:05

    For a shorter, faster solution

    library(dplyr)
    library(readr)
    df <- list.files(path="yourpath", full.names = TRUE) %>% 
      lapply(read_csv) %>% 
      bind_rows 
    

提交回复
热议问题