unit.id | R Documentation |
Some formats require a name for a unit definition. This functions creates a name from a unit, converting math/symbols to text. The returned value should work as an SBML unit id.
unit.id(unit.str, prnt = FALSE)
unit.str |
the original string representastion of that unit |
prnt |
logical switch: if TRUE, the name will be printed. |
unit.id string
> unit.id("s^9")
[1] "s_to_the_power_of_9"
> unit.id("cm^2")
[1] "cm_square"
> unit.id("1/s")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.