getMR: Get mortality rates from a LIM.

View source: R/extract_lim_data.R

getMRR Documentation

Get mortality rates from a LIM.

Description

This function calculates the mortality rates (per unit time) of all organisms from a LIM.

Usage

getMR(BM, web, vars, mTag = NULL, verbose = TRUE)

Arguments

BM

(required) A named numeric vector containing biomasses of all LIM components.

web

(required) A named numeric vector with the flow solutions.

vars

(required) A named numeric vector with the LIM variables.

mTag

(optional) Tag assigned to the flows or variables containing the natural, i.e. non-predatory, mortality. Default is set to "mort". Not case sensitive.

verbose

(optional) Should the function provide messages?

Details

In order for this function to work, the LIM must be set-up in a specific way. The flows or variables representing total natural mortality of an organism must be named as: "compartmentTag" or "tagCompartment" (not case sensitive). For more information on setting up the LIM, please review the vignette.

Value

Returns a named vector with mortality rates (per unit time).

References

LIM package, Soetaert & van Oevelen 2015.

See Also

getVariables


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