Get scenario names from a comparison object
Source:R/comparison_helpers.R
sce_get_scenario_names.Rd
Get scenario names from a comparison object
Examples
# create some scenarios
pandemic_flu <- scenario(
name = "pandemic_flu",
model_function = "finalsize::final_size",
parameters = make_parameters_finalsize_UK(r0 = 1.5),
replicates = 1L
)
covid19 <- scenario(
model_function = "finalsize::final_size",
parameters = make_parameters_finalsize_UK(r0 = 5.0),
replicates = 1L
)
# create comparison, passing prepared scenarios with some names
outbreak_comparison <- comparison(
pandemic_flu, covid19,
baseline = "pandemic_flu"
)