add_intervention: Building list of interventions to be simulated in the...

Description Usage Arguments Value

View source: R/01_intervention_construction_functions.R

Description

add_intervention constructs a list to hold the intervention "objects". By convention, it is best to add them in order of their start times.

Usage

1
add_intervention(interventions = NULL, intervention)

Arguments

interventions

List of the current interventions to append to. If NULL, we construct a new intervention list and then append to it. For first add to list should be called omitting (or setting to NULL) this param.

intervention

Intervention "object" to add to intervention list.

Value

A list object containing interventions including the one just added.


SC-COSMO/sccosmomcma documentation built on Dec. 18, 2021, 11:56 a.m.