shorten_run_names: Shorten full names of 'rSFSW2' simulation runs

View source: R/Functions_Supporting.R

shorten_run_namesR Documentation

Shorten full names of rSFSW2 simulation runs

Description

Full names of rSFSW2 simulation runs are composed of three parts

  • a run number

  • experimental treatment

  • site label

and concatenated by "_" as separator, for instance, "001_Default_SiteA", "002_Default_SiteB", etc.

Usage

shorten_run_names(run_names, element_sep = "_", N_discard = 2)

Arguments

run_names

A vector of character strings.

element_sep

A character value. The separating character.

N_discard

An integer value. The number of elements separated by element_sep to discard.

Details

It may be desirable to shorten the full names in cases where only none/one experimental treatment was used, for instance, SiteA", "SiteB", etc.

Examples

shorten_run_names(c("001_Default_SiteA", "002_Default_SiteB"))


DrylandEcology/rSW2metrics documentation built on May 25, 2023, 10:38 a.m.