I need to read multiple .csv files into one variable in R. All the files contain data with the same headings but I want the variable in R to have the headings only once, and then all the data from all the .csv files in the rows beneath. At the moment I have this:
All_Data <- list()
List_Data <- dir(pattern = ".csv")
for (i in 1:length(List_Data)){
All_Data[[i]] <- read.csv(List_Data[i])
}
Which works to combine the files, but means I have the headings from every file in rows in between data which I do not want.