get_config_aqua_trace: Get parameters for aquatic (immature) model with forced...

View source: R/aquatic_trace.R

get_config_aqua_traceR Documentation

Get parameters for aquatic (immature) model with forced emergence

Description

The JSON config file should have two entries:

  • stochastic: a boolean value

  • lambda: a scalar, vector, or matrix (row major). It will be passed to time_patch_varying_parameter, see that function's documentation for appropriate dimensions.

For interpretation of the entries, please read setup_aqua_trace.

Usage

get_config_aqua_trace(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)
t <- 10 # number of days to simulate
par <- list(
 "stochastic" = FALSE,
 "lambda" = rpois(n = t, lambda = 10)
)
toJSON(par, pretty = TRUE)

MicroMoB documentation built on Jan. 17, 2023, 9:06 a.m.