View source: R/default_initialisations.R
initialise_default_Unscaled | R Documentation |
Initialise the default parametrisation for the scaled version of the ATN model as in Binzer et al. (2016), with updates from Gauzens et al. 2020
initialise_default_Unscaled(model, temperature = 20)
model |
an object of class ATN (Rcpp_Unscaled). |
temperature |
numeric, ambient temperature of the ecosystem in Celsius. |
An object of class ATN (Rcpp_Unscaled) with default parameters as in Delmas et al. (2017).
Binzer, A., Guill, C., Rall, B. C. & Brose, U. Interactive effects of warming, eutrophication and size structure: impacts on biodiversity and food-web structure. Glob. Change Biol. 22, 220-227 (2016). Gauzens, B., Rall, B.C., Mendonca, V. et al. Biodiversity of intertidal food webs in response to warming across latitudes. Nat. Clim. Chang. 10, 264-269 (2020). https://doi.org/10.1038/s41558-020-0698-z
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(20, 10, masses, L)
mod <- initialise_default_Unscaled(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.