get_config_aqua_BH | R Documentation |
The JSON config file should have two entries:
stochastic: a boolean value
molt: a scalar, vector, or matrix (row major)
surv: a scalar, vector, or matrix (row major)
K: a scalar, vector, or matrix (row major)
L: a vector
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.
get_config_aqua_BH(path)
path |
a file path to a JSON file |
a named list
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.