Skip to contents

Read scenario definition(s) from excel file

Usage

readScenarioConfigurationFromExcel(scenarioNames = NULL, projectConfiguration)

Arguments

scenarioNames

Names of the scenarios that are defined in the excel file. If NULL (default), all scenarios specified in the excel file will be created.

projectConfiguration

A ProjectConfiguration object holding base information

Value

A named list of ScenarioConfiguration objects withe the names of the list being scenario names.

Details

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.

Examples

if (FALSE) {
# Create default ProjectConfiguration
projectConfiguration <- createDefaultProjectConfiguration()
scenarioName <- "MyScenario"
# Read scenario definition from excel
scenarioConfiguration <- readScenarioConfigurationFromExcel(scenarioConfiguration)[[scenarioName]]
}