GearDependentSpeciesCategoryCatchCompensation: Apply the sweep of different gear (and cruise)

View source: R/SpeciesCategoryCatch.R

GearDependentSpeciesCategoryCatchCompensationR Documentation

Apply the sweep of different gear (and cruise)

Description

This function multiplies the CatchFractionWeight and CatchFractionNumber of a SpeciesCategoryCatchData by the sweep width given by CompensationTable. The result is a sweep width compensated length distribution (SpeciesCategoryCatchType starting with "SweepWidthCompensated").

Usage

GearDependentSpeciesCategoryCatchCompensation(
  SpeciesCategoryCatchData,
  CompensationMethod = c("Gear", "Cruise", "GearAndCruise"),
  CompensationTable = data.table::data.table()
)

Arguments

SpeciesCategoryCatchData

The SpeciesCategoryCatchData data.

CompensationMethod

The method to use for the length dependent catch compensation, i.e. specifying which columns to provide the sweep width for.

CompensationTable

A table of the sweep width per combination of the variables specified in CompensationMethod. Note that all combinations present in the data must be given in the table, as the output should be sweep width compensated for all rows with non-missing WeightedNumber.

Value

A SpeciesCategoryCatchData object.


StoXProject/RstoxBase documentation built on Nov. 6, 2024, noon