View source: R/utilities-scenarios.R
saveScenarioResults | R Documentation |
Save results of scenario simulations to csv.
saveScenarioResults(
simulatedScenariosResults,
projectConfiguration,
outputFolder = NULL,
saveSimulationsToPKML = TRUE
)
simulatedScenariosResults |
Named list with |
projectConfiguration |
An instance of |
outputFolder |
Optional - path to the folder where the results will be
stored. If |
saveSimulationsToPKML |
If |
For each scenario, a separate csv file will be created. If the scenario
is a population simulation, a population is stored along with the results with
the file name suffix _population
. Results can be read with the loadScenarioResults()
function.
outputFolder
or the created output folder path, if no outputFolder
was provided.
## Not run:
projectConfiguration <- esqlabsR::createProjectConfiguration()
scenarioConfigurations <- readScenarioConfigurationFromExcel(
projectConfiguration = projectConfiguration
)
scenarios <- createScenarios(scenarioConfigurations = scenarioConfigurations)
simulatedScenariosResults <- runScenarios(
scenarios = scenarios
)
saveScenarioResults(simulatedScenariosResults, projectConfiguration)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.