Get the values of quantities in the simulation by path
Source:R/utilities-quantity.R
getQuantityValuesByPath.Rd
Get the values of quantities in the simulation by path
Arguments
- quantityPaths
A single or a list of absolute quantity paths
- simulation
Simulation containing the quantities
- units
A string or a list of strings defining the units of returned values. If
NULL
(default), values are returned in base units. If notNULL
, must have the same length asquantityPaths
. Single entries may beNULL
.- stopIfNotFound
Boolean. If
TRUE
(default) and no quantity exists for the given path, an error is thrown. IfFALSE
, a warning is shown to the user.
Examples
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
getQuantityValuesByPath(
list("Organism|Liver|Volume", "Organism|Liver|A"),
sim, list("ml", NULL)
)
#> [1] 10000 30