anyMissing(x, ...)
vector
, a list
, a matrix
, a data.frame
, or TRUE
at the first detected missing value.x <- rnorm(n=1000)
x[seq(300,length(x),by=100)] <- NA
stopifnot(anyMissing(x) == any(is.na(x)))
Run the code above in your browser using DataLab