I have the following list of files in a folder:
1.docx
2.docx
3.docx
4.docx
6.txt
I figured out how to mass rename using this code:
file.rename(list.files(pattern="*.docx"), paste0("", 1:4,".docx"))
I have dates in the correct order in a csv
file that I would like to append to the end of each filename accordingly.
So 1.docx - date is cell A1; 2.docx - date in A2, etc. Example of final filename: 1 MMDDYY.docx
etc. What would this look like?