Description Usage Arguments Value See Also Examples
This selection helper selects the variables for which a function returns TRUE
.
1 | where(fn)
|
fn |
A function that returns |
A vector of integer
column positions which are the result of the fn
evaluation.
select_helpers
1 2 3 | 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.