R/util-checks.R

Defines functions check_dx

check_dx <- function(dx){
  if (is.character(dx) != TRUE) {
    warning("Your diagnoses were not character variable(s) and have been converted to such. To avoid this warning, please convert diagnoses to characters before this step.")
    dx <- as.character(dx)
  }
}

Try the socialrisk package in your browser

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

socialrisk documentation built on Feb. 16, 2023, 8:03 p.m.