pBiomassBins: Total and normalised biomass in each bin for a fitted...

View source: R/distributions.R

pBiomassBinsR Documentation

Total and normalised biomass in each bin for a fitted distribution and given bin breaks

Description

Bin breaks are input as EITHER a single tibble binValsTibble with each row representing a bin, OR as a vector binBreaks of breaks.

Usage

pBiomassBins(
  ...,
  binValsTibble = NULL,
  binBreaks = NULL,
  xmin = NULL,
  xmax = NULL,
  n
)

Arguments

...

extra arguments passed to bBiomass: b. Needs to go first to avoid partial matching of b (to be part of ...) with whichever of binValsTibble or binBreaks is not supplied in the call to pBiomassBins(). Will likely want to specify these in every call (do not rely on the default).

binValsTibble

tibble of binned data with each row representing a bin and with columns wmin and wmax (min and max break of each bin), or columns named binMin and binMax. Extra columns are ignored. Similar to LBN_bin_plot().

binBreaks

vector of bin breaks

n

total number of individuals in the system (needed to calculate biomass)

Value

tibble with each row corresponding to a bin, and columns wmin, wmax, binWidth, estBiomass, and estBiomassNorm. If the input is a tibble with columns wmin and wmax (or binMin and binMax), then columns estBiomass and estBiomassNorm are appended to the input tibble.

Author(s)

Andrew Edwards


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.