calc_probs_biomass: Calculate the probabilities that biomasses are under or over...

View source: R/calc-probs-biomass.R

calc_probs_biomassR Documentation

Calculate the probabilities that biomasses are under or over given reference points

Description

Calculate the probabilities that biomasses are under or over given reference points or that they decline or increase from one year to the next

Usage

calc_probs_biomass(
  d,
  refpt = 0.2,
  prob_gt = TRUE,
  year_to_year = FALSE,
  format = c("latex", "html"),
  ...
)

Arguments

d

A data frame containing a column named catch and other columns names as years of depletion

refpt

The depletion value that is checked against in the data frame d

prob_gt

Stand for 'probability greater than'. If TRUE,

year_to_year

If TRUE, calculate the probabilities of decline or increase from one year to the next (depending on what prob_gt is, if it is TRUE, it will be the probability of decreasing, if it is FALSE, it will be the probability of increasing)

format

If 'latex' modify column headers with latex code, if 'html' modify column headers with html code

...

Absorb arguments intended for other functions

Value

A data frame containing N rows where N is the number of unique catch levels in d


pbs-assess/gfiscamutils documentation built on Oct. 24, 2024, 1:37 p.m.