powered by
Count observations with missing data.
lengthwhichis.na(x)
count of observations where data are missing
count
vector data which may contain missings
x <- c(rep(NA,18), rep(1,18), rep(0,10), rep(NA, 10)) lengthwhichis.na(x)
Run the code above in your browser using DataLab