Learn R Programming

dMod (version 0.1)

subset.eqnList: subset of an equation list

Description

subset of an equation list

Usage

## S3 method for class 'eqnList':
subset(x, ...)

Arguments

x
the equation list
...
logical expression for subsetting

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".

Details

The argument ... can contain "Educt", "Product", "Rate" and "Description". The "

Examples

Run this code
reactions <- data.frame(Description = c("Activation", "Deactivation"),
                        Rate = c("act*A", "deact*pA"), A=c(-1,1), pA=c(1, -1) )
f <- generateEquations(reactions)
subset(f, "A"%in%Educt)
subset(f, "pA"%in%Product)
subset(f, grepl("act", Rate))

Run the code above in your browser using DataLab