Description Usage Arguments Details Value Examples
Creates a new formula object to be used anywhere formulas are used (i.e, glm
).
1 | make_formula(..., lhs = TRUE, op = "+", group = NULL)
|
... |
any number of arguments to compose the formula |
lhs |
a boolean indicating if the formula has a left hand side of the argument |
op |
the operand acting upon the arguments of the right side of the formula. |
group |
an argument to use as a grouping variable to facet by |
If lhs
is TRUE
, the first argument provided is used as the left hand side of the formula.
The group
paramenter will add | group
to the end of the formula. This is useful for packages that support faceting by grouping variables for the purposes of tables or graphs.
a formula
1 2 3 | make_formula(var1, var2, var3)
make_formula(var1, var2, var3, lhs = FALSE)
make_formula(var1, var2, var3, lhs = FALSE, group = var4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.