R/all_true.R

Defines functions all_true

Documented in all_true

#' Are all entries of a vector TRUE?
#'
#' @param x a vector
#' @return TRUE or FALSE
#' @export
all_true <- function(x){
  return(all.equal(x, rep(TRUE, length(x))))
}
fboehm/boehm documentation built on Feb. 16, 2020, 3:42 a.m.