Learn R Programming

MicroMoB (version 0.1.2)

get_config_visitor_trace: Get parameters for trace driven visitors

Description

The JSON config file should have two entries:

  • Wd: vector or matrix (see time_patch_varying_parameter for valid dimensions)

  • xd: vector or matrix (see time_patch_varying_parameter for valid dimensions)

For interpretation of the entries, please read setup_visitor_trace.

Usage

get_config_visitor_trace(path)

Value

a named list

Arguments

path

a file path to a JSON file

Examples

Run this code
# to see an example of proper JSON input, run the following
library(jsonlite)
par <- list(
 "Wd" = rep(1, 5),
 "xd" = rep(0.01, 365)
)
toJSON(par, pretty = TRUE)

Run the code above in your browser using DataLab