vapply with
argument FUN.VALUE set.
The function is expected to return a single logical, integer,
numeric or character value, depending on the second letter
of the function name.
vlapply(x, fun, ..., use.names = TRUE)
viapply(x, fun, ..., use.names = TRUE)
vnapply(x, fun, ..., use.names = TRUE)
vcapply(x, fun, ..., use.names = TRUE)vector or list]
Object to apply function on.function]
Function to apply on each element of x.ANY]
Additional arguments for fun.logical(1)]
Should result be named?
Default is TRUE.