View source: R/utilities-scenario-configuration.R
readScenarioConfigurationFromExcel | R Documentation |
Read scenario definition(s) from excel file
readScenarioConfigurationFromExcel(scenarioNames = NULL, projectConfiguration)
scenarioNames |
Names of the scenarios that are defined in the excel file.
If |
projectConfiguration |
A |
Reads scenario definition from the excel file defined in
ProjectConfiguration
and creates ScenarioConfiguration
objects with new
information.
If a scenario that is specified in scenarioNames
is not found in the excel
file, an error is thrown.
A named list of ScenarioConfiguration
objects withe the names of the
list being scenario names.
## Not run:
# Create default ProjectConfiguration
projectConfiguration <- createProjectConfiguration()
scenarioName <- "MyScenario"
# Read scenario definition from excel
scenarioConfiguration <- readScenarioConfigurationFromExcel(scenarioConfiguration)[[scenarioName]]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.