R/check_min_known_n.R

Defines functions check_min_known_n

check_min_known_n <- function(x, x_na_omit, min_known_n) {
    known_n <- length(x_na_omit)
    ## When the number of known values is smaller than the given minimum,
    ## FALSE will be returned
    if (known_n < min_known_n) {
        return(FALSE)
    } else {
        TRUE
    }
}

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.