isExplicitFormulaByPath: Is the value defined by an explicit formula

View source: R/utilities-quantity.R

isExplicitFormulaByPathR Documentation

Is the value defined by an explicit formula

Description

Is the value defined by an explicit formula

Usage

isExplicitFormulaByPath(path, simulation, stopIfNotFound = TRUE)

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. If FALSE, 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

Open-Systems-Pharmacology/OSPSuite-R documentation built on Feb. 14, 2025, 4:48 p.m.