Learn R Programming

ss3sim (version 0.9.5)

change_maturity: Alter a control file to specify the SS3 maturity option

Description

Alter a control file to specify the maturity option in SS3. You could use this function to, for example, tell SS3 to read empirical age-fecundity and body weight-at-age data from wtatage.ss.

Usage

change_maturity(ctl_file_in = "em.ctl", ctl_file_out = "em.ctl",
  maturity_option = 1L)

Value

A modified SS3 control file.

Which arguments to specifiy in case files

All function argument descriptions that start with an asterisk (*) will be passed through the case files to run_ss3sim. If one of these arguments is not specified in a case file, then a value of NULL will be passed, which may or may not be an appropriate value. Other arguments will be ignored if specified.

See Also

Other change functions: change_data, change_em_binning, change_e, change_f, change_retro, change_tv

Examples

Run this code
# NOT RUN {
# Create a temporary folder for the output:
temp_path <- file.path(tempdir(), "ss3sim-maturity-example")
dir.create(temp_path, showWarnings = FALSE)
wd <- getwd()
setwd(temp_path)

# Locate the package data:
ctlfile <- system.file("extdata", "models", "cod-em",
 "codEM.ctl", package = "ss3sim")

# Change the maturity option from 1 to 5:
change_maturity(ctlfile, "test.ctl", maturity_option = 5L)

unlink("test.ctl")
setwd(wd)
# }

Run the code above in your browser using DataLab