initialise_default_Unscaled_nuts {ATNr}R Documentation

Default model parameters as in Schneider et al. 2016

Description

Initialise the default parametrisation for the model for Schneider et al. (2016).

Usage

initialise_default_Unscaled_nuts(model, L.mat, temperature = 20)

Arguments

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 create_Lmatrix.

temperature

numeric, ambient temperature of the ecosystem in Celsius.

Value

An object of class ATN (Rcpp_Unscaled_nuts) with default parameters as in Schneider et al. (2016).

References

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.

Examples

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)

[Package ATNr version 1.1.0 Index]