do_discard_bootstrap.Rd
Bootstrap uncertainty and summarize WCGOP discard data
do_discard_bootstrap(
data,
species_name,
boot_number,
gear_groups,
gear_names,
fleet_colname,
fleet_groups,
fleet_names,
dir = NULL,
seed_number = 1,
rm_em_data = FALSE
)
A data frame of WCGOP catch data
species name that should match the name in the ob data file, can be single species or multiple names (e.g. c("Gopher Rockfish", "Black and Yellow Rockfish"))
The number of bootstraps to conduct
List of gear types to group together (example: list(c("Bottom Trawl", "Midwater Trawl"), c("Hook & Line", "Pot", "Shrimp Trawl"))).
Vector of gear group names (example: c("trawl", "fixed gear")).
Column to use to determine areas for fleets (example: "r_state.x")
List of fleet groups to use (example: list(c("WA", "OR", "CA"))).
Vector of fleet names (example: c("coastwide")).
Directory location to save files.
The seed number.
Logical indicating whether EM records should be removed from the observer catch records (OBCatch) data file.