Description Usage Arguments Value Examples
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
1 | missing_matrix(dt, one_as_missing = TRUE)
|
dt |
A data frame |
one_as_missing |
A scalar boolean. If true, 1 represents missing and 0 represents observed data. Otherwise the reverse true. |
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.
1 | missing_matrix(data.frame(x = c("foo", NA), y = c(NA, "bar")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.