R/util_count_NA.R

Defines functions util_count_NA

Documented in util_count_NA

#' Support function to count number of `NA`s
#'
#' Counts the number of `NA`s in x.
#'
#' @param x object to count `NA`s in
#'
#' @return number of `NA`s
#'
util_count_NA <- function(x) {
  sum(is.na(x))
}

Try the dataquieR package in your browser

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

dataquieR documentation built on July 26, 2023, 6:10 p.m.