View source: R/utilities-units.R
toDisplayUnit | R Documentation |
Converts a value given in base unit of a quantity into the display unit of a quantity
toDisplayUnit(quantity, values)
quantity |
Instance of a quantity from which the base unit will be retrieved |
values |
Value in base unit (single or vector) |
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
par <- getParameter("Organism|Liver|Volume", sim)
# Converts the value in base unit (1L) to display unit
valueInMl <- toDisplayUnit(par, 1)
valuesInDisplayUnit <- toDisplayUnit(par, c(1, 5, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.