View source: R/utilities-sensitivity-analysis.R
exportSensitivityAnalysisResultsToCSV | R Documentation |
Saves the simulation analysis results to csv file
exportSensitivityAnalysisResultsToCSV(results, filePath)
results |
Results to export (typically calculated using |
filePath |
Full path where the results will be saved. |
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
# Load the simulation
sim <- loadSimulation(simPath)
# Create a new sensitivity object for the simulation
sensitivity <- SensitivityAnalysis$new(sim)
# Runs the sensitivity analysis
results <- runSensitivityAnalysis(sensitivity)
# Export the results to csv file
exportSensitivityAnalysisResultsToCSV(results, tempfile())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.