
Last chance! 50% off unlimited learning
Sale ends in
anyMissing(x, idxs=NULL, ...)
colAnyMissings(x, rows=NULL, cols=NULL, ...)
rowAnyMissings(x, rows=NULL, cols=NULL, ...)
vector
, a list
, a matrix
, a data.frame
, or NULL
.TRUE
if a missing value was detected, otherwise FALSE
.TRUE
as soon as a missing value is detected.anyNA()
in the base,
which provides the same functionality as anyMissing()
. 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