Building on the question that was answered here about using file.rename in R to move a single file from ond folder to another, is there a way to build a looping function in R that would move all (multiple) files from one folder to another existing folder without having to explicitly name all of the indivdual files?
If possible, I would like to keep the original folder intact so I can start to fill it with fresh files after moving the old ones.
Thanks!