rename.replicates: Rename (renumber) replicate folders within a scenario

Description Usage Arguments Details

View source: R/rename.replicates.R

Description

This function replaces the numbers between square brackets at the end of the folder names of replicates within one scenario with the numbers provided in suffix

Usage

1
rename.replicates(path.results = NULL, scenario, suffix, verbose = FALSE)

Arguments

path.results

The path to the 'Results' folder

scenario

The scenario whose replicates need to be renamed

suffix

An integer vector to rename the replicates

verbose

Should progress be printed in the console? Default: FALSE

Details

rename.replicates can process one scenario at the time. Processing of multiple scenarios with the same suffix should be achieved using a loop (e.g. lapply). suffix should be of the same length as the number of replicates.

Note that the order in which the original folder names are replaced may not be progressive. For example, normally the replicate '10' is renamed after replicate '1' and before '2'.


carlopacioni/HexSimR documentation built on Nov. 28, 2020, 4:12 p.m.