The function receives an object of simulation results generated by running the simulation and returns time-values profiles for the chosen quantities. Results of a simulation of a single individual is treated as a population simulation with only one individual.
getOutputValues( simulationResults, quantitiesOrPaths = NULL, population = NULL, individualIds = NULL, stopIfNotFound = TRUE, addMetaData = TRUE )
Object of type
SimulationResults produced by calling
Quantity instances (element or vector) typically retrieved using
getAllQuantitiesMatching or quantity path (element or vector of strings) for which the results are to be returned. (optional)
When providing the paths, only absolute full paths are supported (i.e., no matching with '*' possible).
If quantitiesOrPaths is
NULL (default value), returns the results for all output defined in the results.
population used to calculate the simulationResults (optional). This is used only to add the population covariates to the resulting data table.
numeric IDs of individuals for which the results should be extracted.
By default, all individuals from the results are considered. If the individual with the provided ID is not found, the ID is ignored
TRUE (default) an error is thrown if no results exist for any
FALSE, a list of
NA values is returned for the respective path.
TRUE (default), the output is a list two sublists
metaData, with latter storing information about units and dimensions of the outputs. If
NULL. Setting this option to
FALSE might improve
the performance of the function.