simplify: Simplify formulas to a standard form using

Description Usage Arguments Value

View source: R/formula.R

Description

Applies a recursive descent parser to transform '*', grouping using parentheses, and lme4-style random effects. '1' is for an intercept, '0' is for an explicit no-intercept. Processing of contrasts is left for later.

Usage

1
simplify(node)

Arguments

node

an R formula object.

side

which side of the formula to parse, either the 'rhs' (default) or the 'lhs' functions.

Value

a simplified formula involving _only_ undefined functions, intercept-related calls, parens, '+', and ':'


sakrejda/hierarchy documentation built on Aug. 23, 2019, 7:15 p.m.