Split comland_nafo.r into 3 files: get_foreign_data.r, process_foreign_data.r, and process_foreign_data_skate_hake.r
get_foreign_data.r pulls NAFO 21B data. Included two arguments to allow user to remove USA data, and to aggregate catch by Country. This can now be used as a stand alone function for anyone wishing to work with NAFO data
process_foreign_data.r (this is simply copy and paste from comland_nafo) deals with converting data codes to allow the data to be merged with get_comland_data data pull:
NAFO species -> NESPP3
NAFO gear to NEGEAR - > fleet
NAFO tonnage to comlandr tonnage class designations
NAFO Division codes to EPUs
supplementing missing data with 21A data
process_foreign_data_skate_hake.r deals with the apportioning of the skate complex and the hake complex.
Pkgdown
Added several packages (readr, patchwork, ggforce, kableExtra, tidyr) to Suggests in DESCRIPTION for rmds to run
Included two rmds (Comparisons between 21A and 21B databases )
NAFO data
comland_nafo.r
into 3 files:get_foreign_data.r
,process_foreign_data.r
, andprocess_foreign_data_skate_hake.r
get_foreign_data.r
pulls NAFO 21B data. Included two arguments to allow user to remove USA data, and to aggregate catch by Country. This can now be used as a stand alone function for anyone wishing to work with NAFO dataprocess_foreign_data.r
(this is simply copy and paste from comland_nafo) deals with converting data codes to allow the data to be merged withget_comland_data
data pull:process_foreign_data_skate_hake.r
deals with the apportioning of the skate complex and the hake complex.Pkgdown
DESCRIPTION
for rmds to runForegnCatch.rmd
ForeignCatchCompare21A21B.rmd
extdata
extdata
Bug fixes