This is the inverse of is.na
. This is a convenience
function meant to be used as a predicate in an assertr
assertion.
Examples
not_na(NA)
#> [1] FALSE
not_na(2.8)
#> [1] TRUE
not_na("tree")
#> [1] TRUE
not_na(c(1, 2, NA, 4))
#> [1] TRUE TRUE FALSE TRUE