R/count_na.R

Defines functions count_na

Documented in count_na

#' Count NA values
#'
#' \code{count_na} counts NA values
#' 
#' Adapted from https://sebastiansauer.github.io/sum-isna/
count_na <- function(df) {
  
  df %>% purrr::map_df(~sum(is.na(.)))
}
mohrsignal/edat documentation built on May 18, 2019, 3:38 a.m.