summarizeStrata.fn: Summarize discards within a strata

View source: R/SummarizeStrata.R

summarizeStrata.fnR Documentation

Summarize discards within a strata

Description

Summarize discards within a strata

Usage

summarizeStrata.fn(
  dat,
  colnms = NULL,
  yrColNm = NULL,
  summaryNames = c("drvid", "trip_id", "haul_id"),
  totalNames = c("dis", "ret"),
  vesselColName = "drvid",
  vesselCrit = 3
)

Arguments

dat

the dataframe of observations

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

summaryNames

identifiers for the vessel, trip number, and haul id

totalNames

Discard or retention

vesselColName

Vessel id within the WCGOP database

vesselCrit

the minimum number of vessels within a strata for confidentiality. Stratas with less this number will be flagged as having confidential information.

Author(s)

Allan Hicks and Chantel WEtzel


nwfsc-assess/nwfscDiscardBootstrap documentation built on July 3, 2023, 11:03 p.m.