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)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-01-07
  • 2022-01-16
  • 2021-12-28
相关资源
相似解决方案