Learn R Programming

ss3sim (version 0.9.0)

expand_scenarios: Create vectors of scenario IDs

Description

Create vectors of scenarios from inputs. For passing to run_ss3sim, or get_results_all. Default case values are the base case (0).

Usage

expand_scenarios(cases = list(D = 0, E = 0, F = 0, M = 0, R = 0),
  species = c("cod", "fla", "sar"))

Arguments

cases
A named list of cases. The names in the list are the case IDs and the values are the case values.
species
Vector of 3-letter character IDs designating the species/stock.

Value

  • A character vector of scenario IDs. The case IDs will be alphabetically sorted.

See Also

run_ss3sim, get_results_all

Examples

Run this code
expand_scenarios()
expand_scenarios(cases = list(D = 0:3, E = 0, F = 0, M = 0, R = 0),
species = "cod")

Run the code above in your browser using DataLab