Learn R Programming

dMod (version 0.1)

addReaction: Add reaction to reaction table

Description

Add reaction to reaction table

Usage

addReaction(from, to, rate, f = NULL)

Arguments

from
character with the left hand side of the reaction, e.g. "2*A + B"
to
character with the right hand side of the reaction, e.g. "C + 2*D"
rate
named character. The rate associated with the reaction. The name is employed as a description of the reaction.
f
equation list, see generateEquations

Value

  • An object of class eqnList, a named vector with the equations. Contains attributes "SMatrix" (the stoichiometric matrix), "species" (the state names), "rates" (the rate expressions) and "description".

Examples

Run this code
f <- addReaction("2*A+B", "C + 2*D", "k1*B*A^2", NULL)
f <- addReaction("C + A", "B + A", "k2*C*A", f)

Run the code above in your browser using DataLab