Description Usage Arguments Details Value See Also Examples
Formula interpolation to expand functions in a formula into lists of variables. The interpolation provided here are convenience functions for formulae used in modeling applications.
1 | f_expand(f, lhs = TRUE, rhs = TRUE, envir = parent.frame())
|
f |
A formula |
lhs |
logical. Expand the left-hand side of the formula |
rhs |
logical. Expand the left-hand side of the formula |
envir |
An environment in which to evaluate the functions. This is where the expansion functions look for variable names. |
The following special interpolation functions are provided:
.x(..., sep = "+") expands variables using the semantics in
dplyr selection functions.
.x_(..., sep = "+") is the standard evaluation version of
.x
.p(.f, sep = "+") matches all objects in envir that
satisfy the predicate function .f
.m(pattern, sep = "+") matches all names in envir that
match the regular expression pattern.
A formula object
See bquote and f_interp
for other formula interpolation methods.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.