Skip to contents

This is the main function of the secpRod package. It will calculate secondary production for all groups based on the methods described in the taxa information object. Depending on input values varying summaries are returned.

Usage

calc_production(
  taxaSampleListMass = NULL,
  infoCols = NULL,
  taxaInfo = NULL,
  bootNum = 100,
  wrap = 1L,
  taxaSummary = "full",
  ...
)

Arguments

taxaSampleListMass

data.frame of sample length-masses and abundances

infoCols

integer vector; Any columns in the sizeInfo object that are not the taxonomic ID, sampling metadata, or size class columns

taxaInfo

dataframe (or coercible); The taxonomic information for calculating secondary production. This must include a taxonomic ID column with the same name as that of taxaSampleListMass

bootNum

integer. The number of bootstrapped samples to create

wrap

logical should an extra date be added to make a full calendar year?

taxaSummary

string of 'short', 'full', or 'none' to distinguish the information returned

...

additional arguments passed to function