file_increment {r4ss}R Documentation

Rename Stock Synthesis files by adding integer value

Description

Rename files found with pattern by adding i to their name before the extension.

Usage

file_increment(
  i,
  verbose = FALSE,
  pattern = "^[CcPRw][a-zA-Z]+\\.sso|summary\\.sso|\\.par$"
)

Arguments

i

An integer value to append to the file name before the .sso extension.

verbose

A logical value specifying if output should be printed to the screen.

pattern

A character value specifying the file names to search for in getwd().

Details

The .par file, which is the only file extension searched for with the default entry that does not end in .sso, is modified differently.⁠_i.sso⁠ is added to the file name.

Value

Invisibly returns a vector of logical values specifying whether or not the file was successfully renamed.

Author(s)

Kelli F. Johnson


[Package r4ss version 1.44.0 Index]