canada_extract_depth_data_from_db: Extract the Canadian depth and fishing event data

View source: R/utils-canada-extract-depth-data-from-db.R

canada_extract_depth_data_from_dbR Documentation

Extract the Canadian depth and fishing event data

Description

Extract the Canadian depth and fishing event data from the GFBIOSQL database. The data frame returned will contain the fishing_event_id column along with six depth columns.

Usage

canada_extract_depth_data_from_db(
  fn = file.path(can_sample_dr, can_depths_rds_fn),
  ret_df = FALSE,
  overwrite = FALSE
)

Arguments

ret_df

Logical. If TRUE, return the data frame from the function and do not write a csv file. If FALSE, write the csv file and return nothing

overwrite

Logical. Overwrite the RDS file for if it exists

dr

The directory to save the depth RDS file in

Value

If ret_df is TRUE, return the depth data frame. If ret_df is FALSE, return nothing, write an RDS file instead


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