friendlyeval (version 0.1.1)

treat_input_as_expr: treat_input_as_expr

Description

Take what was input and treat it as an expression argument to dplyr function.

Usage

treat_input_as_expr(arg)

Arguments

arg

the argument for which the literal input text is to be used as an expression.

Value

something that will resolve to an expression when prefixed by `!!`

Details

This is used inside a function to pass the literal text of what the caller typed as an expression to a `dplyr` function. These might be logical expressions passed to filter: `filter(dat, col == "example")`, or functions of columns passed to mutate or summarise: `summarise(dat, mean(col))`.