every {purrr} | R Documentation |
Do every or some elements of a list satisfy a predicate?
every(.x, .p, ...) some(.x, .p, ...)
.x |
A list or atomic vector. |
.p |
A predicate function to apply on each element of |
... |
Additional arguments passed on to |
A logical vector of length 1.
y <- list(0:10, 5.5) y %>% every(is.numeric) y %>% every(is.integer)