Calculate the cumulative sum of number & percentage of missingness for each variable.

miss_var_cumsum(data)

Arguments

data

a data.frame

Value

a tibble of the cumulative sum of missing data in each variable

See also

Examples

miss_var_cumsum(airquality)
#> # A tibble: 6 x 3 #> variable n_miss n_miss_cumsum #> <chr> <int> <int> #> 1 Ozone 37 37 #> 2 Solar.R 7 44 #> 3 Wind 0 44 #> 4 Temp 0 44 #> 5 Month 0 44 #> 6 Day 0 44
if (FALSE) { library(dplyr) # respects dplyr::group_by airquality %>% group_by(Month) %>% miss_var_cumsum() }