canada_create_commercial_waa: create the weight-at-age CSV file for Canadian commercial...

View source: R/utils-canada-create-commercial-waa.R

canada_create_commercial_waaR Documentation

create the weight-at-age CSV file for Canadian commercial data

Description

create the weight-at-age CSV file for Canadian commercial data

Usage

canada_create_commercial_waa(
  d,
  weight_scale = 1000,
  num_sex = 2,
  ret_df = FALSE
)

Arguments

d

A list as returned by gfdata::get_commercial_samples()

weight_scale

A value to divide the weights by

num_sex

Either 1 or 2. If 1, then fill the column Sex with U for every record. If 2, use the data to fill the Sex column with M, F, or U depending on input values

ret_df

Logical. If TRUE, return the weight-at-age data frame. If FALSE, write the data frame to the Canadian weight-at-age CSV file

Details

No filtering is performed in this function. Creates a CSV file containing the commercial weight-at-age

Value

a data frame with Source set to CAN_freezer, CAN_shoreside, CAN_jv, and CAN_polish for the four fishery types


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