Learn R Programming

visdat (version 0.6.0)

data-vis-miss: Return data used to create vis_miss plot

Description

Return data used to create vis_miss plot

Create a tidy dataframe of missing data suitable for plotting

Usage

data_vis_miss(x, ...)

# S3 method for default data_vis_miss(x, ...)

# S3 method for data.frame data_vis_miss(x, cluster = FALSE, ...)

# S3 method for grouped_df data_vis_miss(x, ...)

Value

data frame

tidy dataframe of missing data

Arguments

x

data.frame

...

extra arguments (currently unused)

cluster

logical - whether to cluster missingness. Default is FALSE.

Examples

Run this code
data_vis_miss(airquality)

if (FALSE) {
#return vis_dat data for each group
library(dplyr)
airquality %>%
  group_by(Month) %>%
  data_vis_miss()
}
data_vis_miss(airquality)

Run the code above in your browser using DataLab