This question already has an answer here:
I have a folder containing 332 csv files. The name of the files are as follows 001.csv, 002.csv, 003.csv, ............ , 330.csv, 331.csv , 332.csv . All the files have same number of variables and same format.
I need to read all the files in one dataframe. I have been reading each one and then using rbind, but this is too cumbersome.
Need help.
Here is a possible solution. Could probably also be done with a apply function.
Solution with
data.table
, answer is taken from another post in SO which I used sometimes back.Try lapply and do.call