R/all_bt.R

Defines functions all_bt

Documented in all_bt

#' Are all elements of a vector below a threshold?
#'
#' @param x vector
#' @param thres threshold
#'
#' @return logical
#' @export
#'
#' @examples all_bt(c(1,2,3), 3)
all_bt = function(x, thres){
  
  all(x < thres)
}
dougmcneall/imptools documentation built on Nov. 13, 2021, 7:12 p.m.