canada_get_fleet_samples: Split up the Canadian samples data frame into fleet data...

View source: R/utils-canada-get-fleet-samples.R

canada_get_fleet_samplesR Documentation

Split up the Canadian samples data frame into fleet data frames

Description

Split up the samples data frame into three data frames, one for Freezer trawlers, one for Shoreside, and one for the Joint venture fishery

Usage

canada_get_fleet_samples(d, db_type = c("gfbio", "gffos"))

Arguments

d

A data frame as returned by gfdata::get_commercial_samples(), or the wrapper canada_load_sample_data(), or from canada_extract_depth_data_from_db()

db_type

The type of database that d came from. This is needed to determine which Freezer trawler vessel IDs to use, GFbioSQL or GFFOS

Details

The following filtering is performed in this function for fleets:

  1. Freezer trawlers - Observed and Non-observed domestic trips, vessel is in the package data variable freezer_trawlers

  2. Shoreside - Observed and Non-observed domestic trips, vessel is not in the package data variable freezer_trawlers

  3. Joint venture - Observed J-V trips

Value

A list of three named data frames, one for each of the three Canadian fisheries ft, ss, and jv


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