View source: R/utilities-quantity.R
setQuantityValuesByPath | R Documentation |
Set the values of quantities in the simulation by path
setQuantityValuesByPath(
quantityPaths,
values,
simulation,
units = NULL,
stopIfNotFound = TRUE
)
quantityPaths |
A single or a list of absolute quantity paths |
values |
A numeric value that should be assigned to the quantities or a vector of numeric values, if the value of more than one quantity should be changed. Must have the same length as 'quantityPaths'. |
simulation |
Simulation containing the quantities |
units |
A string or a list of strings defining the units of the
|
stopIfNotFound |
Boolean. If |
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
setQuantityValuesByPath("Organism|Liver|Volume", 1, sim)
setParameterValuesByPath(list("Organism|Liver|Volume", "Organism|Liver|A"), c(2, 3), sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.