make_scenario_dirname | R Documentation |
A function to automate the creation of a scenario directory name.
Used internally in solve*()
and interpolate*()
functions.
Also can be used to amend the name of the scenario directory and explicitly
assign the directory name to save the scenario object.
make_scenario_dirname(
scen,
name = scen@name,
model_name = scen@model@name,
calendar_name = scen@settings@calendar@name,
horizon_name = scen@settings@horizon@name,
prefix = NULL,
suffix = NULL,
sep = "_"
)
scen |
scenario object |
name |
character, name of the scenario, default is |
model_name |
character, name of the model, default is |
calendar_name |
character, name of the calendar, default is |
horizon_name |
character, name of the horizon, default is |
prefix |
character, prefix to add to the name |
suffix |
character, suffix to add to the name |
sep |
character, separator, default is |
character, name of the scenario directory
## Not run:
make_scenario_dirname(scen_BASE)
make_scenario_dirname(scen_BASE, prefix = "prefix", suffix = "suffix")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.