miss_pattern | R Documentation |
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.
miss_pattern(data)
data |
(data.frame/matrix) The data. |
A vector of patterns the same length as the number of rows in data.
miss_pattern(miss_add_random(iris))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.