Learn R Programming

reformulas (version 0.4.1)

expandDoubleVerts: Expand terms with '||' notation into separate '|' terms

Description

From the right hand side of a formula for a mixed-effects model, expand terms with the double vertical bar operator into separate, independent random effect terms.

Usage

expandDoubleVerts(term)

Value

the modified term

Arguments

term

a mixed-model formula

See Also

formula, model.frame, model.matrix.

Other utilities: mkReTrms(), nobars(), subbars()