R/checkNA.R

Defines functions checkNA

checkNA <- function(df, view = 1){
  tabla <- sapply(df, function(x){mean(x %in% c(NA, Inf, -Inf, NaN))})
  if(view){
    View(tabla)
  } else{
    return(tabla)
  }
}
ggajardocea/grrr documentation built on May 20, 2020, 8:12 a.m.