Last chance! 50% off unlimited learning
Sale ends in
subset of an equation list
# S3 method for eqnlist
subset(x, ...)
the equation list
logical expression for subsetting
An object of class eqnlist
The argument ...
can contain "Educt", "Product", "Rate" and "Description".
The "
# NOT RUN {
reactions <- data.frame(Description = c("Activation", "Deactivation"),
Rate = c("act*A", "deact*pA"), A=c(-1,1), pA=c(1, -1) )
f <- as.eqnlist(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