View source: R/utilities-simulation-results.R
simulationResultsToDataFrame | R Documentation |
SimulationResults
objects to a data.frameConverts a SimulationResults
objects to a data.frame
simulationResultsToDataFrame(
simulationResults,
quantitiesOrPaths = NULL,
population = NULL,
individualIds = NULL
)
simulationResultsToTibble(
simulationResults,
quantitiesOrPaths = NULL,
population = NULL,
individualIds = NULL
)
simulationResults |
Object of type |
quantitiesOrPaths |
Quantity instances (element or vector) typically
retrieved using |
population |
population used to calculate the |
individualIds |
|
SimulationResults object as data.frame with columns IndividualId, Time, paths, simulationValues, unit, dimension, TimeUnit.
library(ospsuite)
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
# Running an individual simulation
# results is an instance of `SimulationResults`
results <- runSimulations(sim)[[1]]
# convert to a dataframe
simulationResultsToDataFrame(results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.