R/check_no_NAs.R

Defines functions check_no_NAs

Documented in check_no_NAs

#' Check for NA entries
#'
#' @param object
#'
#' @return  TRUE or error message
#'
check_no_NAs <- function(object) {
  if (all(!is.na(object))) TRUE
  else "NA(s) found in entry"
}
cdcepi/predx documentation built on Dec. 29, 2019, 4:58 p.m.