col_miss: Column Missing Percent

View source: R/col_miss.R

col_missR Documentation

Column Missing Percent

Description

Percent of values missing by column

Usage

col_miss(df, empty_string = FALSE, numeric_out = FALSE)

Arguments

df

A data frame

empty_string

Should only white space values be treated as NA?

numeric_out

Should the return value be unformatted numbers?

Note

Likely to be used interactively

Author(s)

Sven Halvorson

Examples

set.seed(1)
dat = c('X', 'Y', 'Z', '', NA)
df = tibble::tibble(a = sample(dat, size = 5, replace = TRUE),
                    b = sample(dat, size = 5, replace = TRUE),
                    c = sample(dat, size = 5, replace = TRUE))
df
col_miss(df)
col_miss(df, empty_string = TRUE)

svenhalvorson/SvenR documentation built on Aug. 25, 2023, 1:31 p.m.