I have a large number of data files (>1000) in a single directory. I would like to merge them all in a single data frame in R. They all have the same number and types of columns. So far what I have is:
setwd("directory")
files <- list.files()
for (i in 1:length(files)) assign(files[i], read.csv(files[i]))
This creates data frames for each of the 1000+ files. Is there any way to merge them, without having to type out a list of all 1000+ file names?
Any help would be appreciated!