R/utils.R

Defines functions check_ipums_data

check_ipums_data <- function(x, nm = "x") {
  if (!"ipums_ddi" %in% names(attributes(x))) {
    stop("Input '", nm, "' must come from preprocess_ipums()")
  }
}
ki-tools/idhs documentation built on June 11, 2022, 7:19 a.m.