Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在使用file.rename并希望dd.mm.yy在新文件名的末尾包含一个。
file.rename
dd.mm.yy
file.rename('x.xlsx','x DD.MM.YY.xls')
fname = "x" date=as.character.Date(format.Date(Sys.Date(),"%d.%m.%y")) fmt=".xlsx" newname=paste0(x,date,fmt) file.rename("x.xlsx",newname)