R语言 重命名目录下所有文件

it2022-05-05  108

myfilepath <- "F:/paper2/climateExposure/wjj_mec/second/paths/"setwd(myfilepath)alltypefiles = dir(myfilepath)newname = gsub(pattern = 'paths.',replacement = 'paths_',x = alltypefiles)file.rename(alltypefiles,newname)

转载于:https://www.cnblogs.com/arcserver/p/9974739.html


最新回复(0)