Function that takes a logical vector and ensures any NA values are set to FALSE.

not_NA(lgc)

Arguments

x

A logical vector.

Value

A logical vector with NA cases set to FALSE.

Examples

not_NA( c(TRUE, FALSE, NA) )
#> [1]  TRUE FALSE FALSE