Manipulate model formulas
simplify.formula rewrites a formula using shorthand notation.
Currently only the factor crossing operator * is applied, so that
expanded expression such as a+b+a:b becomes a*b.
expand.formula does the opposite, additionally expanding other
expressions, i.e. all nesting (/), grouping and ^.
simplify.formula(x) expand.formula(x)
x |
a |
Kamil Bartoń
simplify.formula(y ~ a + b + a:b + (c + b)^2) simplify.formula(y ~ a + b + a:b + 0) expand.formula(~ a * b)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.