change_comp | R Documentation |
Change the composition data in a Stock Synthesis data list object or file to include rows of data that are desired. Typically, this will be an operating model (OM) because only dummy-data observations are used here, i.e., all compositions are set to a value of one. Creating these dummy observations is helpful before running your OM because it will facilitate the creation of observed values for each desired combination.
change_comp(dat_list, type = c("len", "age", "cal"), paramlist, nsex = 1, bins)
dat_list |
A Stock Synthesis data list object as read in from
|
type |
The sample type you want.
See the function call for available types,
e.g., |
paramlist |
A list of parameter values derived from the data frame used to set up
your similation. For example, |
nsex |
An integer value between one and two specifying the number of sexes in the model, where 1 is based on females only for spawning stock biomass and two-sex models allow for sex-specific parameters. |
bins |
A vector of bins for the composition data. The bins do not need to be named because they will be renamed with their value and a leading character based on what type of data they are. |
# todo: remove this example when testing is complete
## Not run:
change_comp(
dat_list = dat, type = "len",
paramlist = scenariol[[1]][[c("lcomp_params", "agecomp_params")]]
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.