catch | R Documentation |
Extract or generate catch data summaries.
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, ...)
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 |
weight |
Logical value specifying whether to return a summary by weights rather than counts. |
value |
Object containing catch data to be assigned. |
catch(scsbio)
: Snow crab biological data catch summaries.
catch(scslen)
: Snow crab by-catch length data catch summaries.
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.