Description Usage Arguments Details Examples
Expressions, including model formulas, are often created to refer to variables in a particular data frame. This function figures out which variables are being referred to and makes a data frame containing just those variables.
1 | df_from_expr(data = NULL, E, base = TRUE)
|
data |
The data frame that |
E |
An expression intended to be evaluated with respect to a data frame. The expression could be produced by |
base |
A flag saying whether the variable itself (default: |
When the expression involves a transformation of a variable, e.g. log(price), when base = TRUE
the variable itself
(e.g. price
) will be in the data frame rather than the transformation.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.