R/how.many.missing.R

how.many.missing <-
function (x) 
{
  if(class(x)=="array"){x<-two.d.array(x)}
    totaldata <- nrow(x) * ncol(x)
    excluded <- ifelse(is.na(x), 1, 0)
    sums <- sum(excluded)
    percent <- sums/totaldata
    return(percent)
}

Try the LOST package in your browser

Any scripts or data that you put into this service are public.

LOST documentation built on April 14, 2020, 6:18 p.m.