grapes-twiddle-grapes: %~%

Description Usage Arguments Value Examples

Description

Model update operator. It functions in place of the model update function. In the context of in this part of the formula<e2><80><99>.

Usage

1
original_formula %~% addition

Arguments

original_formula

the original formula to use.

addition

Additions / removals / changes to the formula.

Value

Updated formula.

Examples

1
2
3
4
5
6
7
## Add Sepal.Width to model2.
model <- setosa ~ Sepal.Length
## Add Sepal.Width to the existing model.
model2 <- model %~% ~ . + Sepal.Width
## Note the brackets are necessary in case of LHS substitution, otherwise
## the whole formula is consumed without evaluation.
model3 <- model %~% (Sepal.Width ~ .)

Ottawa-EPRI/EPmisc documentation built on May 18, 2019, 10:14 a.m.