Skip to contents

Saves the simulation results to csv file

Usage

exportResultsToCSV(results, filePath)

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())