getMortalityRates: Calculate mortality rates from energy-fluxes

View source: R/get_physiology.R

getMortalityRatesR Documentation

Calculate mortality rates from energy-fluxes

Description

This function can be used to calculate mortality rates (unit t-1) based on a Flowmatrix, conversion efficiencies, and biomasses.

Usage

getMortalityRates(FM, AE, GE, BM, dead_names)

Arguments

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).

Value

Returns a names vector with mortality rates in the unit per time, t-1.


dswdejonge/fwstability documentation built on Dec. 7, 2022, 7:24 p.m.