missVals {CMO} | R Documentation |
Counts missing values foreach column of a matrix
missVals(x)
x |
Input matrix. Only NA is allowed as missing value entry. |
returns a one row matrix with the count of NAs foreach column of the input matrix
Christian Montel
#create some data dat <- matrix(c(1,1,1,2,NA,2,3,NA,3),nrow=3,byrow=TRUE) dat missVals(dat)