catch: Catch Data

catchR Documentation

Catch Data

Description

Extract or generate catch data summaries.

Usage

catch(x, ...)

## S3 method for class 'scsbio'
catch(x, by = key.scsset(), category, species, weight = FALSE, ...)

## S3 method for class 'scslen'
catch(x, by = key.scslen(), species, ...)

Arguments

x

Target object.

...

Other parameters (not used).

by

Character string(s) specifying which variables to group by when summararizing.

category

Biological category string(s). See category for more details.

weight

Logical value specifying whether to return a summary by weights rather than counts.

value

Object containing catch data to be assigned.

Methods (by class)

  • catch(scsbio): Snow crab biological data catch summaries.

  • catch(scslen): Snow crab by-catch length data catch summaries.

Examples

s <- read.scsset(2020)  # Tow data.
b <- read.scsbio(2020)  # Biological data.

# Generate catch summaries from biological data:
catch(b) # Total crab.
catch(b, category = c("M", "F"), by = c("date"))
catch(b, category = c("COM"), by = c("date", "tow.id"))
catch(b, category = category(1:10), by = c("date", "tow.id"))

TobieSurette/gulf.data documentation built on Jan. 19, 2025, 7:50 p.m.