Skip to contents

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.

Usage

gather_shadow(data)

Arguments

data

a dataframe

Value

dataframe in long, format, containing information about the missings

Examples


gather_shadow(airquality)
#> # A tibble: 918 × 3
#>     case variable   missing
#>    <int> <chr>      <fct>  
#>  1     1 Ozone_NA   !NA    
#>  2     1 Solar.R_NA !NA    
#>  3     1 Wind_NA    !NA    
#>  4     1 Temp_NA    !NA    
#>  5     1 Month_NA   !NA    
#>  6     1 Day_NA     !NA    
#>  7     2 Ozone_NA   !NA    
#>  8     2 Solar.R_NA !NA    
#>  9     2 Wind_NA    !NA    
#> 10     2 Temp_NA    !NA    
#> # ℹ 908 more rows