R/cumall.R

Defines functions cumall cumany

Documented in cumall cumany

#' Cumulative all and any
#'
#' @param x a `logical` vector.
#' @return a `logical` vector
#' @export
#'
#' @examples
#' cumall(c(TRUE, TRUE, NA, TRUE, FALSE))
#' cumany(c(FALSE, FALSE, NA, TRUE, FALSE))
cumall <- function(x) {
  .Call("cumall_", x)
}




#' @rdname cumall
#' @export
cumany <- function(x) {
  .Call("cumany_", x)
}

Try the lest package in your browser

Any scripts or data that you put into this service are public.

lest documentation built on Jan. 11, 2020, 9:37 a.m.