friendlyeval (version 0.1.1)

treat_inputs_as_exprs: treat_inputs_as_exprs

Description

Take the literal text input for a comma separated list of arguments and treat it as a list of expressions in a dplyr function.

Usage

treat_inputs_as_exprs(...)

Arguments

...

a comma separated list of arguments to be treated as expressions.

Value

something that will resolve to a list of expressions when prefixed with `!!!`

Details

Common usage of this is to pass `...` from your function directly through to dplyr functions as expressions. This could be a list of filtering expressions for filter: `filter(dat, col1 == "example1", col2 == "example2")`, or a list of functions of columns to `mutate` or `summarise`: `summarise(dat, mean(col1), var(col1))`

This function must be prefixed with `!!!` to treat the output as a list.