replace_gear_names: Change the gear names in already-loaded models

View source: R/replace-gear-names.R

replace_gear_namesR Documentation

Change the gear names in already-loaded models

Description

Change the gear names in already-loaded models. This function takes a list of outputs from load_iscam_files() and changes the gear names and/or abbreviations inside them

Usage

replace_gear_names(
  models,
  old_gear_names = NULL,
  new_gear_names = NULL,
  old_gear_abbrevs = NULL,
  new_gear_abbrevs = NULL
)

Arguments

models

A list of outputs of load_iscam_files()

old_gear_names

A vector of the old gear names to replace. See model object (model$dat$gear_names) to see what they currently are

new_gear_names

A vector of the new gear names. Must be the same length as old_gear_names

old_gear_abbrevs

A vector of the old gear abbreviations to replace. See model object (model$dat$gear_abbrevs) to see what they currently are

new_gear_abbrevs

A vector of the new gear abbrevs. Must be the same length as old_gear_abbrevs

Value

A modified list of models


pbs-assess/gfiscamutils documentation built on Oct. 24, 2024, 1:37 p.m.