A function to get the parameters for a food web model.
getPARAMS(
usin,
DIETLIMTS = NA,
diet_correct = TRUE,
Conly = FALSE,
userdefinedinputs = NA,
returnCNmin = FALSE,
has_inorganic_nitrogen = FALSE,
densitydependence = NA,
inorganic_nitrogen_properties = list(INN = NA, q = NA, eqmN = NA),
verbose = TRUE,
Immbolizationlimit = Inf
)
A list with two elements: (1) a vector of parameters to run the model away from equilibrium and (2) a vector of starting biomasses.
The community you want to simulate.
The diet limits matrix for the stoichiometry correction (proportion of diet)?
Boolean: Does the organism correct it's diet?
Boolean: Is the model meant for carbon only?
Do you want to input a user defined vector of input functions? If NA the input values that keep the system at equilibrium are calculated. If not, put in a vector of input rates for each node.
Boolean: Do you want to add Cmin and Nmin to the list of the results? Used internally in the package in calculate_inputs
.
Boolean: Is there an inorganic nitrogen pool?
Which nodes have density dependence? NA default means none of them do. Should be a vector of 0 (no DD) and 1 (DD) for each node.
A list of state variables for the inorganic nitrogen pool (INN = inputs, q = per capita loss of N, eqmN = equilibrium N). Must include a value for two of the three variables and has the final one as NA.
Boolean: Do you want extra warnings updates?
This is the limit of the amount of nitrogen the food web can immobilize nitrogen (NOT PLANTS). This will impact the calculations of inorganic nitrogen dynamics.
A function to get the parameters of a food web model for simulation purposes. It does not correct stoichiometry, so the user must do this beforehand if they want.
CNsim
, stability2
, and calculate_inputs
for the application of the function and use of it's options.
# Basic call.
getPARAMS(intro_comm)
Run the code above in your browser using DataLab