powered by
Count the missing or non-finite values for each column of a matrix or data.frame
sumNA(object, inf = TRUE)
numerical vector containing the missing value counts for each column
a vector, matrix, or data.frame
if TRUE, Inf and NaN values are counted along with NAs
Werner A. Stahel, ETH Zurich
is.na, is.finite, dropNA
is.na
t.d <- data.frame(V1=c(1,2,NA,4), V2=c(11,12,13,Inf), V3=c(21,NA,23,Inf)) sumNA(t.d)
Run the code above in your browser using DataLab