R/check_output.R

Defines functions .check_output

#' @keywords internal
.check_output <- function(x, id) {
  x[[id]] <- NULL
  # Check that all identified comorbidity domains are either 0 or 1
  if (!all(x == 0 | x == 1)) stop("'comorbidity()' ended up in an unexpected state.\nPlease report a bug with a reproducible example at https://github.com/ellessenne/comorbidity/issues\n", call. = FALSE)
}

Try the comorbidity package in your browser

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

comorbidity documentation built on May 1, 2023, 5:19 p.m.