miss_pattern: Calculates the patterns of missing data

View source: R/missing_data.R

miss_patternR Documentation

Calculates the patterns of missing data

Description

Calculates the patterns of missing data. This is the missing data matrix multiplied row-wise by a vector of the 2 to the 1 to n power, where n is the number of variables. This results in a unique id for each way the data can be missing.

Usage

miss_pattern(data)

Arguments

data

(data.frame/matrix) The data.

Value

A vector of patterns the same length as the number of rows in data.

Examples

miss_pattern(miss_add_random(iris))

Deleetdk/kirkegaard documentation built on April 1, 2024, 2:23 a.m.