powered by
This is the inverse of is.na. This is a convenience function meant to be used as a predicate in an assertr assertion.
is.na
assertr
not_na(x, allow.NaN = FALSE)
A R object that supports is.na an is.nan
A logical indicating whether NaNs should be allowed (default FALSE)
A vector of the same length that is TRUE when the element is not NA and FALSE otherwise
is.na is.nan
is.nan
# NOT RUN { not_na(NA) not_na(2.8) not_na("tree") not_na(c(1, 2, NA, 4)) # }
Run the code above in your browser using DataLab