missing_table: Create table showing missing values

Description Usage Arguments Examples

Description

A tool to assess missingness in a dataset. This can be expanded to look into specific groups of the data. Returns a data.frame.

Usage

1
2
missing_table(data, group_variable = NULL, round_values = TRUE,
  show_total = FALSE, show_non_missing = TRUE)

Arguments

data

A data.frame.

group_variable

A character string. If missing values should be assessed in relation to a specific group, this argument specifies the name of the column which contains grouping information.

round_values

Should the numbers be rounded?

show_total

When looking at a table of missing values according to group, should missingness in the whole population also be showed?

show_non_missing

Should information about missingness be shown for all variables in the data sets (even those with no missing values)?

Examples

1
2
3
4
5
missing_table(airquality)

missing_table(airquality, show_non_missing=FALSE)

missing_table(airquality, "Month", show_total = TRUE)

dlindholm/doctoR documentation built on May 15, 2019, 9:18 a.m.