missing_matrix: Create a missing indicator information

Description Usage Arguments Value Examples

Description

Converts a data frame into a mim object. This is a list of vectors showing the positions of missing data by rows and columns and a missing indicator matrix

Usage

1
missing_matrix(dt, one_as_missing = TRUE)

Arguments

dt

A data frame

one_as_missing

A scalar boolean. If true, 1 represents missing and 0 represents observed data. Otherwise the reverse true.

Value

A list containing vectors showing the position of missing data by rows and columns and a matrix of 1 and 0 having the same dimensions as the input.

Examples

1
missing_matrix(data.frame(x = c("foo", NA), y = c(NA, "bar")))

julianhatwell/arulesimp documentation built on May 11, 2019, 4:17 p.m.