canada_load_catch_data: Load Canadian catch data from files extracted using the FOS...

View source: R/utils-canada-load-catch-data.R

canada_load_catch_dataR Documentation

Load Canadian catch data from files extracted using the FOS web interface

Description

Load Canadian catch data from files extracted using the FOS web interface

Usage

canada_load_catch_data(
  dr = "/srv/hake/other/landings/canada",
  min_date = as.Date("2007-04-01")
)

Arguments

dr

The directory name where the files reside

min_date

Earliest date to include in the data returned

Details

The web interface is queried each year with the DMP landings from April 1, 2007 to present being in one file called LandingsSpeciesDateDMP.csv and N files, 1 for each year or LOGS data (logbook discards) with names in the form LogCatchReportXXXX.csv with XXXX being the four digit year from 2007 to present. These must be separate files due to limitations of the web software, it cannot process all the years in one query. One new LOGS file is added each year and the DMP file is re-generated each year.

Value

A list of three named data frames, dmp_df for the DMP data, logs_df for the LOGS data, and logs_inside_df for the area 4B data which were not included. logs_inside_df is returned as a convenience for you to see if any other data from area 4B should be included in the assessment


pacific-hake/hake-assessment documentation built on July 21, 2024, 8:19 a.m.