om_index | R Documentation |
#'@description A wrapper function to create survey and fishery index data for assessment input.
Takes the output of om_species
. Wrapper can generate replicates. Saves output as .rds
Results for more than one survey are generated with multiple survey config files and
saved as separate .rds files.
om_index(
usersurvey = usersurvey_file,
userfishery = userfishery_file,
omlist_ss,
n_reps = n_reps,
save = TRUE
)
usersurvey |
survey config file in format of /config/usersurvey.R |
userfishery |
fishery config file in format of /config/fisherycensus.R |
omlist_ss |
output of |
n_reps |
number of replicate indices to be generated |
A |
logical value specifying if the function should save the output
to the disk or not. The default is |
Returns list objects containing dataframes of survey biomass index and total catch:
survObsBiomB, list of replicate dataframes of observed survey biomass (tons)
fishObsCatchB, list of replicate dataframes of observed fishery catch (tons)
,
Sarah Gaichas
Other wrapper functions:
om_comps()
,
om_consindex()
,
om_diet()
,
om_init()
,
om_species()
## Not run:
# assuming CC3om is output of om_init(here("config/CC3config.r"))
# and CC3om_sardine <- om_species(c("Pacific_sardine"), CC3om)
CC3om_sard_ind <- om_index(usersurvey = here("config/usersurvey.R"),
userfishery = here("config/fisherycensus.R"),
omlist_ss = CC3om_sardine,
n_reps = 5,
save = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.