| na.count | R Documentation |
Count missing data
na.count(data)
data |
a vector (numeric, factor or ordered), a matrix, a data.frame or a list |
key function nafun <- function(x){sum(is.na(x))}
vector of missing value per variable
JuG
#with data.frame
data3 <- data.frame(a = c(1,2,3), b= c("e",NA,3), c = 1:3)
na.count(data3)
#with list
data4 <- list(a = c(1,2,3), b= c("e",NA))
na.count(data4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.