| scenario_list | R Documentation |
Generates a list of scenarios by expanding combinations of regular parameters and preserving grouped parameters that must vary together.
scenario_list(..., each = 1)
... |
Named arguments defining parameters. Arguments may be regular
vectors or |
each |
Integer representing the number of replications for each scenario or set of parameters. Defaults to 1. |
A list of scenarios, where each element is a named vector of parameter
values with an added element scenario giving the scenario index.
grouped for creating grouped parameter objects.
# Regular parameters
s1 <- scenario_list(a = 1:2, b = c("x", "y"))
# Grouped parameters
g <- grouped(x = 1:2, y = c(10, 20))
s2 <- scenario_list(a = c("low", "high"), g, each = 3)
# Inspect first few scenarios
head(s1)
head(s2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.