Cumulative sum of the number of missings in each variable
Source:R/miss-x-cumsum.R
miss_var_cumsum.Rd
Calculate the cumulative sum of number & percentage of missingness for each variable.
Examples
miss_var_cumsum(airquality)
#> Warning: `miss_var_cumsum()` was deprecated in naniar 1.1.0.
#> ℹ Please use `miss_var_summary(data, add_cumsum = TRUE)`
#> # A tibble: 6 × 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()
}