Learn R Programming

Tivy (version 0.1.1)

process_weighting_block: Process weighting block

Description

Helper function that processes a block of data for catch weighting. Used internally by apply_catch_weighting.

Usage

process_weighting_block(
  data,
  length_cols,
  catch_col,
  a,
  b,
  silence_warnings = FALSE
)

Value

Data frame with weighted columns added.

Arguments

data

Data frame block to process.

length_cols

Length column names.

catch_col

Catch column name.

a

Coefficient of length-weight relationship.

b

Exponent of length-weight relationship.

silence_warnings

Logical. Suppress warnings.