| grouped | R Documentation |
Utility function to combine several vectors of equal length into
a grouped parameter object. This allows parameters that should vary together
across scenarios to be treated as a unit in scenario_list.
grouped(...)
... |
One or more vectors of equal length to be grouped together. Each argument will be named according to the symbol provided. |
An object of class grouped_params, essentially a named list
where all elements have the same length.
scenario_list for generating scenario combinations
that make use of grouped parameters.
# Define two grouped parameters of equal length
g <- grouped(x = 1:3, y = c(10, 20, 30))
g
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.