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.
#> [1] TRUEy %>% every(is.integer)#> [1] FALSE