parseGroupFormula.Rd
Extract components from a formula with the form
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
~ g1 + g2
gf <- parseGroupFormula(y ~ x1 + x2 | g1 + g2)
gf
#> $model
#> y ~ x1 + x2
#> <environment: 0x56d106296790>
#>
#> $groups
#> g1 + g2
#>
#> $groupFormula
#> ~g1 + g2
#> <environment: 0x56d108323478>
#>