R/na_n.R

Defines functions na_n

Documented in na_n

#' Counts how many values are NA
#' 
#' Returns the number of values that are NA
#' 
#' @param x object to count how many values are \code{NA}
#' 
#' @examples
#'   x <- c( 1, NA, NA, 3:6 )
#' 
#' @export
 
na_n <- function(x)
  sum( is.na(x) )

#' @rdname na_n
#' @export

na_howmany <- na_n 
decisionpatterns/na.actions documentation built on Aug. 25, 2020, 8:04 p.m.