The function generates a simple data frame outlining a number of missing values across provided vectors

compare_missing(..., add_percentage = FALSE)

Arguments

...

Vectors to compare.

add_percentage

A logical, defaults to FALSE. If TRUE will add a column with percentage for missing values.

Value

A tibble

Examples

vecA <- 1:10 vecB <- c(1:100, NA_integer_) vecC <- LETTERS compare_missing(vecA, vecB, vecC)
#> # A tibble: 3 x 3 #> Origin Complete Missing #> <chr> <int> <int> #> 1 vecA 10 0 #> 2 vecB 100 1 #> 3 vecC 26 0