treat_inputs_as_exprs: treat_inputs_as_exprs

Description Usage Arguments Details Value

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

1

Arguments

...

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

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.

Value

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


MilesMcBain/rlung documentation built on May 21, 2019, 9:22 a.m.