mambo: Apply same predicate to multiple variables, and reduce

Description Usage Arguments Value Examples

Description

Apply same predicate to multiple variables, and reduce

Usage

1
mambo(.fun, ..., .tbl = get_tbl(), .op = and, .env = caller_env())

Arguments

.fun

A function or a formula that uses .

...

Tidy selection, see tidyselect::vars_select()

.tbl, .env

Data frame to select columns from, and parent environment, you most likely don't need to supply those arguments

.op

binary operator to purrr::reduce()

Value

a single formula

Examples

1
2
iris %>%
  bolero(mambo(~. > 4, starts_with("Sepal")))

romainfrancois/dance documentation built on May 14, 2019, 11:07 p.m.