R/na.R

Defines functions na

# Count total NA values in field
#
# Returns the number of NA values in a vector.
# @param x vector of numeric values.
# @keywords na
# @examples
# na(c(1,2,3,NA,NA))
na <- function(x) {
    length(x[is.na(x)])
}
rnitulescu/munge documentation built on March 21, 2022, 11 a.m.