Shadow matrix or "nabular" data is a useful way to store missing data to facilitate missing data visualisation. This data can be created using bind_shadow. is_shadow tells us if there are any shadow variables.

is_shadow(x)

is_nabular(x)

Arguments

x

a vector or data.frame

Value

logical vector of length 1

Examples

aq_sh <- as_shadow(airquality) aq_bind <- bind_shadow(airquality) is_shadow(aq_sh)
#> [1] TRUE
is_shadow(airquality)
#> [1] FALSE
is_shadow(aq_bind)
#> [1] FALSE
is_nabular(aq_bind)
#> [1] TRUE