getVariables: Calculate value of LIM variables from flow solutions.

View source: R/extract_lim_data.R

getVariablesR Documentation

Calculate value of LIM variables from flow solutions.

Description

This function calculates the value of variables as defined in the LIM from the flow solutions.

Usage

getVariables(readLIM, web = NULL, lim = NULL, verbose = TRUE)

Arguments

readLIM

(required) A linear inverse model read into the R environment with the R-package LIM. Can be achieved with readLIM <- Read("path_to_input_file")

web

(optional) The solved (food) web problem, i.e. the values of the unknowns; if not specified, the model is solved first, using Lsei.

lim

(option) A LIM that has been set up with the function (Setup(readLIM)).

verbose

(optional) Should the function provide messages?

Details

Variables in the LIM can be defined as the sum of flows, other variables and parameters. This function calculates the value of these variables based on the flow solutions and LIM parameters.

Value

Returns a named vector with all variables.

References

LIM package, Soetaert & van Oevelen 2015.


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