#Set your working directory as the overall export file before running library(dplyr) #list all files in folder csv_files <- dir(pattern='*.csv$', recursive = T) # create data frame with all csvs (must be same structure!) df <- bind_rows(lapply(csv_files, read.csv)) # Save as CSV write.csv(df,"all.csv")