.plus_to_c | R Documentation |
+
in formula LHSGiven a formula like cyl + gear ~ sum_code, this function recursively
replaces the +
operators with c
so that the LHS becomes c(cyl, gear)
.
.plus_to_c(plus_expr)
plus_expr |
Expression |
This function doesn't recurse into other function calls, for example:
cyl + gear + factor(1 + 2)
evaluates to c(cyl, gear, factor(1+2))
.
A new expression where +
is replaced with c()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.