Create shadows
Return a tibble in shadow matrix form, where the variables are the same but have a suffix _NA attached to distinguish them.
as_shadow(data, ...)
data |
dataframe |
... |
selected variables to use |
Representing missing data structure is achieved using the shadow matrix, introduced in Swayne and Buja. The shadow matrix is the same dimension as the data, and consists of binary indicators of missingness of data values, where missing is represented as "NA", and not missing is represented as "!NA". Although these may be represented as 1 and 0, respectively.
appended shadow with column names
as_shadow(airquality)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.