If your csv files are all the .csv files found in your directory you can modify the answer of @Jilber by using the list.files()
function as such:
fileList <- list.files(path="C:/Users/rohit.gupta/Desktop/Data For Rohit/PacketDetails", pattern=".csv")
sapply(fileList, read.csv)
You can also limit the files selected by list.files()
using regular expression, see ?regex
.