make_save_elements: Create the 'save_elements' vector for...

View source: R/netsim_scenarios.R

make_save_elementsR Documentation

Create the save_elements vector for netsim_run_one_scenario

Description

Helper function to create the save_elements character vector according to the save_pattern.

Usage

make_save_elements(save_pattern)

Arguments

save_pattern

A character vector of what should be kept in the final netsim objects. It can contain the names of the elements as well as: "simple" (defautlt) to only keep "epi", "param" and "control"; "restart" to get the elements required to restart from such file; "all" to not trim the object at all. c("simple", "el.cuml") is an example of a valid pattern to save "epi", "param", "control" and "el.cuml". If control$raw.output is TRUE, this parameter has no effect and the full result is saved.


statnet/EpiModelHPC documentation built on Nov. 13, 2023, 11:38 a.m.