Learn R Programming

ss3sim (version 0.9.0)

change_f: Alter the fishing mortality (F) values in an SS3 .par file.

Description

Takes an SS3 .par file and changes the F values for specified years. If used with run_ss3sim the case file should be named F. A suggested (default) case letter is F.

Usage

change_f(years, years_alter, fvals, par_file_in = "ss3.par",
  par_file_out = "ss3.par")

Value

  • A modified SS3 .par 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_maturity, change_retro, change_tv

Examples

Run this code
# Create a temporary folder for the output:
temp_path <- file.path(tempdir(), "ss3sim-f-example")
dir.create(temp_path, showWarnings = FALSE)

# Find the example .par file in the package data:
d <- system.file("extdata", package = "ss3sim")
par_file <- paste0(d, "/change_f/ss3.par")

change_f(years = 1:49, years_alter = 2, fvals = 9999, par_file_in =
par_file, par_file_out = paste0(temp_path, "/test.par"))

Run the code above in your browser using DataLab