gather_shadow is a long-form representation of binding the shadow matrix to your data, producing variables named case, variable, and missing, where missing contains the missing value representation.

gather_shadow(data)

Arguments

data

a dataframe

Value

dataframe in long, format, containing information about the missings

Examples

gather_shadow(airquality)
#> # A tibble: 918 x 3 #> case variable missing #> <int> <chr> <chr> #> 1 1 Ozone_NA !NA #> 2 2 Ozone_NA !NA #> 3 3 Ozone_NA !NA #> 4 4 Ozone_NA !NA #> 5 5 Ozone_NA NA #> 6 6 Ozone_NA !NA #> 7 7 Ozone_NA !NA #> 8 8 Ozone_NA !NA #> 9 9 Ozone_NA !NA #> 10 10 Ozone_NA NA #> # ... with 908 more rows