Utilities for extracting portions of formulas.
parse.formula(formula, ...)rhs(x, ...)
lhs(x, ...)
condition(x, ...)
operator(x, ...)
# S3 method for formula
rhs(x, ...)
# S3 method for formula
lhs(x, ...)
# S3 method for formula
condition(x, ...)
# S3 method for formula
operator(x, ...)
# S3 method for parsedFormula
rhs(x, ...)
# S3 method for parsedFormula
lhs(x, ...)
# S3 method for parsedFormula
operator(x, ...)
# S3 method for parsedFormula
condition(x, ...)
an object of class parsedFormula
from which information is easy to extract
a formula
additional arguments, current ignored
an object (currently a formula
or parsedFormula
)
currently this is primarily concerned with extracting the operator, left hand side, right hand side (minus any condition) and the condition. Improvements/extensions may come in the future.