View source: R/default_initialisations.R
initialise_default_Unscaled_nuts | R Documentation |
Initialise the default parametrisation for the model for Schneider et al. (2016).
initialise_default_Unscaled_nuts(model, L.mat, temperature = 20)
model |
an object of class ATN (Rcpp_Unscaled_nuts. |
L.mat |
numeric matrix, probability of a consumer to attack and capture an encountered resource. See |
temperature |
numeric, ambient temperature of the ecosystem in Celsius. |
An object of class ATN (Rcpp_Unscaled_nuts) with default parameters as in Schneider et al. (2016).
Schneider, F. D., Brose, U., Rall, B. C., & Guill, C. (2016). Animal diversity and ecosystem functioning in dynamic food webs. Nature Communications, 7(1), 1-8.
library(ATNr)
set.seed(123)
masses <- runif(20, 10, 100) #body mass of species
L <- create_Lmatrix(masses, 10, Ropt = 10)
L[L > 0] <- 1
mod <- create_model_Unscaled_nuts(20, 10, 3, masses, L)
mod <- initialise_default_Unscaled_nuts(mod, L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.