View source: R/utilities-quantity.R
getQuantity | R Documentation |
Retrieve a single quantity by path in the given container
getQuantity(path, container, stopIfNotFound = TRUE)
path |
A string representing the path relative to the |
container |
A Container or Simulation used to find the parameters |
stopIfNotFound |
Boolean. If |
The Quantity
with the given path. If the quantity for the path
does not exist, an error is thrown if stopIfNotFound
is TRUE
(default),
otherwise NULL
loadSimulation()
, getContainer()
and
getAllContainersMatching()
to retrieve objects of type Container or
Simulation
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
quantity <- getQuantity("Organism|Liver|Volume", sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.