Do every, some, or none of the elements of a list satisfy a predicate?
Do every, some, or none of the elements of a list satisfy a predicate?
every(.x, .p, ...) some(.x, .p, ...) none(.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) y %>% some(is.integer) y %>% none(is.character)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.