bapply() is a wrapper for vapply() that enforces FUN.VALUE = logical(1).

bapply(X, FUN, ...)

Arguments

X

atomic or list.

FUN

function. An assert check function that returns logical(1) boolean flag (TRUE/FALSE) to apply.

...

Additional arguments passed to vapply().

Value

logical.

Note

  • FUN.VALUE is always set to logical(1).

  • USE.NAMES is always set to TRUE.

Updated 2019-09-06.

See also

Examples

bapply(list(a = "example", b = 1), is.character)
#> a b #> TRUE FALSE