R/utils_get_any.R

Defines functions get_any

#' @export
get_any<-function(x,
                  threshold = NULL)
{
  n_x = get_size(x)[1]
  any_x = n_x > 0
  if(any_x & !is.null(threshold)){
    any_x = any(as.logical(x > threshold))
  }
  return(any_x)
}
adsb85/lqp documentation built on April 9, 2022, 12:35 a.m.