Suppose we have files file1.csv, file2.csv, ... , and file100.csv in directory C:\R\Data and we want to read them all into separate data frames (e.g. file1, file2, ... , and file100).
The reason for this is that, despite having similar names they have different file structures, so it is not that useful to have them in a list.
I could use
Quick draft, untested:
dir() to dynamically generate your list of files.
This returns a vector, just run along the vector in a
Read the i-th file, then use
assign() to place the content into a new variable file_i
That should do the trick for you.