Is the value defined by an explicit formula
Source:R/utilities-quantity.R
isExplicitFormulaByPath.Rd
Is the value defined by an explicit formula
Arguments
- path
Path to the quantity
- simulation
A
Simulation
object that contains the quantity- stopIfNotFound
Boolean. If
TRUE
(default) and no quantity exists for the given path, an error is thrown. IfFALSE
,FALSE
is returned.
Value
TRUE
if the value is an explicit formula, FALSE
otherwise.
Also returns FALSE
if no quantity with the given path is found and
stopInfNotFound
is set to FALSE
.
Examples
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
isExplicitFormulaByPath("Organism|Liver|Volume", sim) # FALSE
#> [1] FALSE