powered by
Evaluate a part of a formula
evalSubFormula(x, data = NULL, ops = c("+", "&"), env = parent.frame())
a data frame containing the terms of the evaluated subformula
an object appearing as a subformula (typically a name or a call)
a data frame or environment in which things are evaluated
a vector of operators that are not evaluated as operators but instead used to further split x
x
an environment in which to search for objects not in data.
data
if (require(mosaicData)) { data(CPS85) cps <- CPS85[1:6,] cps evalSubFormula( rhs( ~ married & sector), data=cps ) }
Run the code above in your browser using DataLab