rename_excel_files: Rename Excel Files to Include Scenario Name

Description Usage Arguments Value

View source: R/rename_excel_files.R

Description

rename_excel_files() inserts a scenario name to the beginning of an the existing file name.

Usage

1
rename_excel_files(files, ifolder, insert_name = NULL, sep = "-")

Arguments

files

Vector of file(s) to rename.

ifolder

Top level folder(s) to find the excel files.

insert_name

By default (if this is NULL), the top level folder name will be inserted into the current file name. If this parameter is specified, it will be used instead of the top level folder. If it is not NULL, it must be the same length as the number of folders specified in ifolder.

sep

The character used to seperate insert_name from the current file name.

Value

Invisibly return a n x 2 matrix with the original file names in the first column and the new file names in the second column.


BoulderCodeHub/crssrelease documentation built on March 5, 2021, 6:19 p.m.