This function calculates taxa production based on the instantaneous growth method
Usage
igr_prod.sample(
df = NULL,
dateDf = NULL,
growthDf = NULL,
lengthValue = NULL,
massValue = "mass",
abunValue = "density",
dateCol = "dateID",
repCol = "repID",
wrap = FALSE,
full = TRUE,
...
)Arguments
- df
a data.frame of long format returned from
convert_length_to_mass()function- lengthValue
string of the column name containing the length class measurements
- massValue
character string identifying the column name of the mass value
- abunValue
character string identifying the column name of the density value
- dateCol
character string identifying the column name of the sample date information. This is distinguished from *Value parameters in that Values may be used to maintain units provenance in the future. This may also change.
- repCol
character string identifying the column name of the replicate information.
- wrap
logical. should the calculations be wrapped by adding an additional date to make a full year?
- full
logical. should the full summary be returned with mean and sd.
- ...
additional arguments passed to function, including variables to predict growth rate from growth function
- sizesDf
a data.frame of the sizes
- minGrowth
numeric. a minimum growth rate value for when growth is negative.