Saves the simulation results to csv file
Source:R/utilities-simulation-results.R
exportResultsToCSV.Rd
Saves the simulation results to csv file
Arguments
- results
Results to export (typically calculated using
runSimulation
or imported from file).- filePath
Full path where the results will be saved.
Examples
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
# Load the simulation
sim <- loadSimulation(simPath)
# Add some outputs to the simulation
addOutputs("Organism|**|*", sim)
# Run the simulation
results <- runSimulation(sim)
# Export the results to csv file
exportResultsToCSV(results, tempfile())