Model math is held as R language objects: SBML's MathML operators become
the matching R calls (<power/> is ^, <ln/> is log(),
<piecewise> is nested if), the time csymbol is the name time,
and lambdas are function expressions. Operators without an exact base R
equivalent keep their SBML name: quotient(), rem(), implies(),
sec() and the other reciprocal trigonometric functions, rateOf() and
delay().
Examples
m <- sbml_read(system.file("extdata", "decay.xml", package = "zusbml"))
sbml_math(sbml_reactions(m)$kinetic_law[[1]])
#> [1] "C * k1 * S1"