I wanted to merge cvs files stored in the work directory and its subfolder. This piece of code runs smoothly:
csv_files <- dir(pattern='.*[.]csv', recursive = T)
list.files()
my_data_frame <- do.call(rbind,lapply(csv_files,read.csv))`
So far so good. I now want to add a coloumn containing the names of these csv files. Furthermore, I want to extract only pieces of these cvs files, let's say from the 5th row to the 10th one.
Thanks for your precious help!