Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

if_all..html

Create conditions on a selection of columns


Description

Helpers to apply a filter across a selection of columns.

Usage

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

iris %>%
  filter.(if_any.(ends_with("Width"), ~ .x > 4))

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

tidytable

Tidy Interface to 'data.table'

v0.6.1
MIT + file LICENSE
Authors
Mark Fairbanks [aut, cre], Abdessabour Moutik [ctb], Matt Carlson [ctb], Ivan Leung [ctb], Ross Kennedy [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.