R/show_na.R

Defines functions show_na

Documented in show_na

#' Show the number of NAs of each column of a data frame
#'
#' @param .data A data frame.
#'
#' @return
#' @export
#'
#' @examples
show_na <- function(.data) {
  .data %>%
    sapply(function(x) sum(is.na(x))) %>%
    return()
}
ylwpaopao/cnquant documentation built on Dec. 2, 2019, 10:39 p.m.