R/tools.R

Defines functions percent_missing

Documented in percent_missing

#' Determine Row Percentage NA Values
#'
#' @param x a vector
#'
#' @return a numeric vector containing the percentage of NA values in x
percent_missing <- function(x) {
    sum(is.na(x)) / length(x)
}

Try the excelstrippr package in your browser

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

excelstrippr documentation built on Jan. 13, 2021, 6:05 a.m.