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
#'
#' @family process_functions
#' @concept process
#' @keywords internal
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 May 29, 2024, 7:18 a.m.