Skip to contents

This tells us if this column is a shade

Usage

is_shade(x)

are_shade(x)

any_shade(x)

Arguments

x

a vector you want to test if is a shade

Value

logical - is this a shade?

Examples


xs <- shade(c(NA, 1, 2, "3"))

is_shade(xs)
#> [1] TRUE
are_shade(xs)
#> [1] TRUE TRUE TRUE TRUE
any_shade(xs)
#> [1] TRUE

aq_s <- as_shadow(airquality)

is_shade(aq_s)
#> [1] FALSE
are_shade(aq_s)
#>   Ozone_NA Solar.R_NA    Wind_NA    Temp_NA   Month_NA     Day_NA 
#>       TRUE       TRUE       TRUE       TRUE       TRUE       TRUE 
any_shade(aq_s)
#> [1] TRUE
any_shade(airquality)
#> [1] FALSE