To read multiple csv files at once, you can use the read_csv function from the readr package as follows:
To get the filenames If the files are in your working directory:
file_names = list.files(pattern="*.csv")
To read the files:
library(readr)
library(dplyr)
fls = lapply(files_names, read_csv) %>% bind_rows()
You can also use the read.delim function as follows:
file_names = list.files(pattern="*.csv")
myfiles = lapply(file_names, read.delim)
To combine these data frames into a single data frame:
DF = do.call(rbind, lapply(files_names, read.delim))