View source: R/tidy-iphc-survey.R
tidy_iphc_survey | R Documentation |
For a given species, calculate the catch rates for each skate based on all hooks and based on the first 20 hooks only, for skates baited with chum (not the other baits used in the 2012 bait experiment), for the years that we have hook-by-hook data and all hooks were enumerated (2003-2012, 2014-2017 and likely later).
tidy_iphc_survey(hook_level, skate_info, set_info)
hook_level |
species-specific hook-level counts from |
skate_info |
species-independent skate-level information from
|
set_info |
species-independent set-level information from
|
tibble with one row for each set in each year, with columns year, station, lat, lon, E_it (effective skate number), N_it (number of fish caught of the given species), C_it (catch rate of given species, as numbers per effective skate), E_it20, N_it20 and C_it20 are the same but considering the first 20 hooks of each skate only, usable (whether the set should be used, based on IPHC codes; some cannot be used for geospatial analysis but are included here). Returns single row with year 2003 and all entries NA, so that functions that call this still work.
## Not run:
yelloweye <- tidy_iphc_survey(
get_iphc_hooks("yelloweye rockfish"),
get_iphc_skates_info(),
get_iphc_sets_info()
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.