bapply: Wrapper to vapply that returns booleans
Description
Wrapper to vapply
for functions that return a boolean (logical
scalar) value.
Usage
bapply(x, predicate, ...)
Arguments
x
A vector (atomic or list).
predicate
A predicate (function that returns a bool) to apply.
elementwise to x
.