Is your enhancement request related to a problem? Please describe.
For lingcod (2021) I grouped some catches from gill nets with the trawl fleet when they should of been part of the fixed gear fleet because they are a set net. Thanks to John Field for pointing this out.
Describe the solution you'd like
A programmatically created lookup table to translate gear codes to fleet and example code on how to use the table. The method should accommodate data from PacFIN, WCGOP, and RecFIN.
Tasks
[x] document discussion from 2022-05-10 nwfsc-assess office hour here in this issue
[ ] create a lookup table using R code and store it in {PEPtools} for now
[ ] create code to use the lookup table and document various use cases
[ ] nwfsc-assess/PEPtools#5
[ ] nwfsc-assess/nwfscDiscard#2
[ ] create summary tools to explore the data to facilitate decisions such as will discard rates of the trawl fleet be informed from all gear groups within the trawl fleet that have data or just the bottom-trawl gear groups that have more information, are any gear groups within a fleet different from other gear groups; can any fleets be combined due to similar behaviour? I think {ggridges} could be helpful here
[ ] translate 9 PacFIN groups to 6 WCGOP groups
[ ] create a list of items that should be included in the data-workshop with gear grouping decisions being one of the items
Is your enhancement request related to a problem? Please describe.
For lingcod (2021) I grouped some catches from gill nets with the trawl fleet when they should of been part of the fixed gear fleet because they are a set net. Thanks to John Field for pointing this out.
Describe the solution you'd like
A programmatically created lookup table to translate gear codes to fleet and example code on how to use the table. The method should accommodate data from PacFIN, WCGOP, and RecFIN.
Tasks
References
WCGOP categories
Gear groupings
R code
dplyr::recode()
dplyr::recode(, !!!)
with splicingmatch()
%in%