R/check_bins_ascend.R

Defines functions check_bins_ascend

Documented in check_bins_ascend

#' Title
#'
#' @param bins
#'
#' @return  TRUE or error message
#'
check_bins_ascend <- function(bins) {
  if (all(diff(bins) > 0)) TRUE
  else "the bins are not in ascending order"
}
cdcepi/predx documentation built on Dec. 29, 2019, 4:58 p.m.