canada_load_sample_data: Load the Canadian commercial sample data

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

canada_load_sample_dataR Documentation

Load the Canadian commercial sample data

Description

Load the Canadian commercial sample data from an RDS file generated by canada_extract_samples_from_db(). The filename is stored in the package data variable can_sample_data_rds_fn

Usage

canada_load_sample_data(
  fn = file.path("/srv/hake/other/samples/canada", can_sample_data_rds_fn),
  gear_type = "midwater trawl"
)

Arguments

fn

The file name for the sample RDS file

gear_type

A vector of fishing gear type (description). Must be one or more of: ⁠midwater trawl⁠, ⁠bottom trawl⁠, ⁠shrimp trawl⁠, or ⁠unknown trawl⁠. If NULL, all type will be included

Details

The following filtering is performed in this function for all fleets:

  1. Areas - BC offshore areas + Strait of Juan de Fuca

  2. Fishing gear - Midwater trawl only by default

Value

A data frame containing filtered Canadian samples


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.