missing_pattern: Calculate Missing Pattern in Dataset

View source: R/missing_pattern.R

missing_patternR Documentation

Calculate Missing Pattern in Dataset

Description

Creates a summary of number of missing values by combination of variables.

Usage

missing_pattern(data, ignore = c(), plot = TRUE)

Arguments

data

dataset to be analysed.

ignore

columns in dataset to be ignored.

plot

a logical indicating whether the results should be plotted.

Details

Identifies all combinations of variables which are missing values (NAs or blanks). Then calculates the frequency of missing values for each identified combination and then produces a heatmap of the result.

Value

a list of various summaries and plots on the missing pattern.

Examples

## Not run: 
if(interactive()){
 data(property_prices)
 miss <- missing_pattern(property_prices)
 # plot heat map
 miss$plot()
 }

## End(Not run)

Nanoputian628/nano documentation built on Oct. 30, 2023, 3:28 p.m.