View source: R/get_catch_obs.R
get_catch_obs | R Documentation |
Get Catch OBS data
get_catch_obs(con = con_maps, start_year = 2017, end_year = 2022)
con |
database connection |
start_year |
start year (calendar year) |
end_year |
end year (calendar year) |
a list with the elements needed for discard estimation: * gf_dat : a data frame of groundfish only trips. This is used only in discard_groundfish.R * non_gf_dat : data frame of only non groundfish trips * all_dat : data frame of all trips
# Main example
dat = get_catch_obs(con_maps, 2021, 2022)
gf_dat = dat$gf_dat
non_gf_dat = dat$non_gf_dat
all_dat = dat$all_dat
rm(dat)
gc()
# Herring example
dat = get_catch_obs_herring(con_maps, 2021, 2022)
gf_dat = dat$gf_dat
non_gf_dat = dat$non_gf_dat
all_dat = dat$all_dat
rm(dat)
gc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.