My situation:
Be sure to use Rs dir command to produce the list of filenames instead of manually entering them in.
dir
filenames = dir(pattern="*01.csv") for( i in 1:length(filenames) ) { ...