Defines functions check_some_missing

Documented in check_some_missing

#' Check if some missing values are present
#' Check if some missing values are present, but not all are missing.
#' returns a boolean. This check is done to save time for vectors where filling
#' is not needed
#' @param x the vector to check
#' @return TRUE or FALSE
check_some_missing <- function(x) {
    x <- unique(x)
    any(is.na(x)) & !all(is.na(x))

Try the fillr package in your browser

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

fillr documentation built on March 26, 2020, 7:23 p.m.