tidy_iphc_survey: Tidy IPHC survey data

View source: R/tidy-iphc-survey.R

tidy_iphc_surveyR Documentation

Tidy IPHC survey data

Description

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).

Usage

tidy_iphc_survey(hook_level, skate_info, set_info)

Arguments

hook_level

species-specific hook-level counts from get_iphc_hooks().

skate_info

species-independent skate-level information from get_iphc_skates_info().

set_info

species-independent set-level information from get_iphc_sets_info().

Value

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.

Examples

## Not run: 
yelloweye <- tidy_iphc_survey(
  get_iphc_hooks("yelloweye rockfish"),
  get_iphc_skates_info(),
  get_iphc_sets_info()
)

## End(Not run)

pbs-assess/gfiphc documentation built on July 4, 2023, 1:13 p.m.