get_config_aqua_BH {MicroMoB}R Documentation

Get parameters for aquatic (immature) model with Beverton-Holt dynamics

Description

The JSON config file should have two entries:

Please see time_patch_varying_parameter for allowed dimensions of entries molt, surv, and K. L should be of length equal to the number of patches. For interpretation of the entries, please read setup_aqua_BH.

Usage

get_config_aqua_BH(path)

Arguments

path

a file path to a JSON file

Value

a named list

Examples

# to see an example of proper JSON input, run the following
library(jsonlite)
p <- 5 # number of patches
t <- 10 # number of days to simulate
par <- list(
 "stochastic" = FALSE,
 "molt" = 0.3,
 "surv" = rep(0.5, 365),
 "K" = matrix(rpois(n = t * p, lambda = 100), nrow = p, ncol = t),
 "L" = rep(10, p)
)
toJSON(par, pretty = TRUE)

[Package MicroMoB version 0.1.2 Index]