na.count | R Documentation |
Counts NAs in an object.
na.count(x)
x |
a vector, data.frame, or matrix. |
Eric Archer eric.archer@noaa.gov
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.