View source: R/get_physiology.R
getMortalityRates | R Documentation |
This function can be used to calculate mortality rates (unit t-1) based on a Flowmatrix, conversion efficiencies, and biomasses.
getMortalityRates(FM, AE, GE, BM, dead_names)
FM |
(required) A named square flowmatrix, source compartments as rows, sink compartments as columns. Should NOT contain external compartments. |
AE |
(required) A named numeric vector with assimilation efficiencies of all compartments, must be in the same order as the flow matrix after externals are excluded. Must be a fraction i.e. between 0 and 1. |
GE |
(required) A named numeric vector with growth (production) efficiencies of all compartments. Must be a fraction i.e. between 0 and 1. |
BM |
(required) A named numeric vector with biomasses of all compartments, must be in the same order as the flow matrix after externals are excluded. |
dead_names |
(optional) Character vector with all names of detritus and nutrient compartments (everything that is not fauna). |
Returns a names vector with mortality rates in the unit per time, t-1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.