miss_case_summary: Summarise the missingness in each case

Description Usage Arguments Value See Also Examples

View source: R/miss-x-summary.R

Description

Return for each case the number and percent of missing values, ordered by the most number of missings.

Usage

1

Arguments

data

a data.frame

order

a logical indicating whether or not to order the result by n_miss. TRUE orders from largest to smallest n_miss, and FALSE orders by order provided by the data.

...

extra arguments

Value

a tibble of the percent of missing data in each case.

See Also

miss_case_pct miss_case_prop miss_prop_summary() miss_case_table miss_summary miss_var_pct miss_var_prop miss_var_run miss_var_span miss_var_summary miss_var_table

Examples

1
2
3
4
5
6
7
# works with group_by from dplyr
library(dplyr)
airquality %>%
  group_by(Month) %>%
  miss_case_summary()

miss_case_summary(airquality)

naniar documentation built on Feb. 9, 2018, 6:05 a.m.