jwutil (version 1.2.3)

is_na_ish: Determine whether a value is, or should be, `NA`

Description

Determine whether a value is, or should be, `NA`

Usage

is_na_ish(x, extra_na = NULL)

Arguments

x

vector to test

extra_na

Additional values to consider equivalent to NA

Examples

Run this code
# NOT RUN {
is_na_ish(c(NA, "1"))
is_na_ish(c("NA", "N/A", "NaN"))
is_na_ish(c(NA))
is_na_ish(c(NA))
# }

Run the code above in your browser using DataLab