where | R Documentation |
This selection helper selects the variables for which a function returns TRUE
.
where(fn)
fn |
A function that returns |
A vector of integer
column positions which are the result of the fn
evaluation.
select_helpers
iris %>% select(where(is.numeric))
iris %>% select(where(function(x) is.numeric(x)))
iris %>% select(where(function(x) is.numeric(x) && mean(x) > 3.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.