Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


mosaic (version 0.14)

parse.formula: Parse formulas

Description

utilities for exptracting portions of formulas.

Usage

parse.formula(formula, ...)
rhs(x, ...)
lhs(x, ...)
condition(x, ...)
operator(x, ...)
"rhs"(x, ...)
"lhs"(x, ...)
"condition"(x, ...)
"operator"(x, ...)
"rhs"(x, ...)
"lhs"(x, ...)
"operator"(x, ...)
"condition"(x, ...)

Arguments

formula,
a formula
x,
an object (currently a formula or parsedFormula)
...
additional arguments, current ignored

Value

an object of class parsedFormula from which information is easy to extract

Details

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.