Cumulative all and any

cumall(x)

cumany(x)

Arguments

x

a logical vector.

Value

a logical vector

Examples

cumall(c(TRUE, TRUE, NA, TRUE, FALSE))
#> [1] TRUE TRUE NA NA FALSE
cumany(c(FALSE, FALSE, NA, TRUE, FALSE))
#> [1] FALSE FALSE NA TRUE TRUE