exportResultsToCSV: Saves the simulation results to csv file

View source: R/utilities-simulation-results.R

exportResultsToCSVR Documentation

Saves the simulation results to csv file

Description

Saves the simulation results to csv file

Usage

exportResultsToCSV(results, filePath)

Arguments

results

Results to export (typically calculated using runSimulations 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 <- runSimulations(sim)[[1]]

# Export the results to csv file
exportResultsToCSV(results, tempfile())

Open-Systems-Pharmacology/OSPSuite-R documentation built on May 8, 2024, 11:36 a.m.