determineCatchShares: Function that checks if observation was made by a Catch Share...

View source: R/DetermineCatchShares.R

determineCatchSharesR Documentation

Function that checks if observation was made by a Catch Share vessel

Description

Function that checks if observation was made by a Catch Share vessel

Usage

determineCatchShares(
  dat,
  yearLevs = as.character(2011:max(dat$ryear)),
  sectorLevs,
  colnms = c("ryear", "sector"),
  colnms.new = c("yearCS", "sectorCS")
)

Arguments

dat

the dataframe of observations

yearLevs

years to split the data according to catch shares, default = as.character(2011:max(dat$ryear)

sectorLevs

sectors that are appart of catch shares, default = list(c('Catch Shares','LE CA Halibut','Shoreside Hake')

colnms

: the names of the columns to subset over (i.e., c("GEAR_TYPE","COMMON_NAME") ). Do not include year columns here, that is kept separate. If numeric, it refers to the column number

colnms.new

new user specified column names which should be consistent with those defined by colnms (e.g., c("Gear.Out", "State"))

Author(s)

Allan Hicks and Chantel WEtzel


nwfsc-assess/nwfscDiscard documentation built on June 28, 2023, 6:06 p.m.