Learn R Programming

assertthat (version 0.2.1)

noNA: Does object contain any missing values?

Description

Does object contain any missing values?

Usage

noNA(x)

Arguments

x

object to test

See Also

Other assertions: are_equal, is.error, is.scalar, not_empty

Examples

Run this code
# NOT RUN {
see_if(noNA("a"))
see_if(noNA(c(TRUE, NA)))
x <- sample(c(1:10, NA), 100, rep = TRUE)
see_if(noNA(x))
# }

Run the code above in your browser using DataLab