| tidyselectors | R Documentation |
tidyselect helpers#'
Predicate functions simplifying
picks specification.
is_categorical(min.len, max.len)
min.len |
( |
max.len |
( |
A tidyselector that can be used directly in choices or selected of variables() in picks().
# select factor column but exclude foreign keys
variables(choices = is_categorical(min.len = 2, max.len = 10))
# Supports tidyselect helpers, e.g. to select all categorical variables with 2 to 10 unique values
dplyr::select(iris, dplyr::where(is_categorical(2, 10)))
p <- picks(
datasets(is.data.frame, 2L),
variables(is_categorical(2, 10))
)
resolver(data = list(mtcars = mtcars, iris = iris), x = p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.