Does this thing contain a shadow variable?

is_shadow(x)

Arguments

x

vector or data.frame

Value

logical - single value. TRUE if contains a variable with a column ending in "_NA"

Examples

df_shadow <- bind_shadow(airquality) is_shadow(df_shadow)
#> [1] TRUE