if_all.: Create conditions on a selection of columns

Description Usage Arguments Examples

View source: R/if_all-if_any.R

Description

Helpers to apply a filter across a selection of columns.

Usage

1
2
3
if_all.(.cols = everything(), .fns = NULL, ...)

if_any.(.cols = everything(), .fns = NULL, ...)

Arguments

.cols

Selection of columns

.fns

Function to create filter conditions

...

Other arguments passed to the function

Examples

1
2
3
4
5
iris %>%
  filter.(if_any.(ends_with("Width"), ~ .x > 4))

iris %>%
  filter.(if_all.(ends_with("Width"), ~ .x > 2))

mtfairbanks/gdt documentation built on May 4, 2021, 9:44 a.m.