powered by

Extract components from a formula with the form y ~ x1 + ... + xn | g1 + ... + gm

y ~ x1 + ... + xn | g1 + ... + gm

parseGroupFormula(form)

A formula of the form y ~ x1 + ... + xn | g1 + ... + gm

If the formula is y ~ x1 + x2 | g1 + g2 the result is

y ~ x1 + x2 | g1 + g2

y ~ x1 + x2

g1 + g2

~ g1 + g2

# NOT RUN { gf <- parseGroupFormula(y ~ x1 + x2 | g1 + g2) gf # }

Run the code above in your browser using DataLab