View source: R/utilities-scenarios.R
loadScenarioResults | R Documentation |
Load simulated scenarios from csv and pkml.
loadScenarioResults(scenarioNames, resultsFolder)
scenarioNames |
Names of simulated scenarios |
resultsFolder |
Path to the folder where simulation results as csv and the corresponding simulations as pkml are located. |
This function requires simulation results AND the corresponding
simulation files being located in the same folder (resultsFolder
) and have
the names of the scenarios.
A named list, where the names are scenario names, and the values are
lists with the entries simulation
being the initialized Simulation
object with applied parameters,
results
being SimulatioResults
object produced by running the simulation,
and outputValues
the output values of the SimulationResults
.
## Not run:
# First simulate scenarios and save the results
projectConfiguration <- esqlabsR::createProjectConfiguration()
scenarioConfigurations <- readScenarioConfigurationFromExcel(
projectConfiguration = projectConfiguration
)
scenarios <- createScenarios(scenarioConfigurations = scenarioConfigurations)
simulatedScenariosResults <- runScenarios(
scenarios = scenarios
)
saveResults(simulatedScenariosResults, projectConfiguration)
# Now load the results
scnarioNames <- names(scenarios)
simulatedScenariosResults <- loadScenarioResults(
scnarioNames = scnarioNames,
resultsFolder = pathToTheFolder
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.