View source: R/if_all-if_any.R
if_all | R Documentation |
Helpers to apply a filter across a selection of columns.
if_all(.cols = everything(), .fns = NULL, ...)
if_any(.cols = everything(), .fns = NULL, ...)
.cols |
Selection of columns |
.fns |
Function to create filter conditions |
... |
Other arguments passed to the function |
iris %>%
filter(if_any(ends_with("Width"), ~ .x > 4))
iris %>%
filter(if_all(ends_with("Width"), ~ .x > 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.