na.count: Count NAs

View source: R/na.count.R

na.countR Documentation

Count NAs

Description

Counts NAs in an object.

Usage

na.count(x)

Arguments

x

a vector, data.frame, or matrix.

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

x <- sample(c(1:10, NA), 30, replace = TRUE)
na.count(x)
x.df <- do.call(data.frame, lapply(1:4, function(i) sample(c(1:10, NA), 30, replace = TRUE)))
colnames(x.df) <- paste("X", 1:4, sep = "")
na.count(x.df)


swfscMisc documentation built on Sept. 8, 2023, 5:55 p.m.