powered by
Check whether values are missing in lazy vectors and lazy matrices.
# S4 method for lazyVector is.na(x)# S4 method for lazyMatrix is.na(x)# S4 method for lazyVector anyNA(x, recursive = FALSE)# S4 method for lazyMatrix anyNA(x, recursive = FALSE)
# S4 method for lazyMatrix is.na(x)
# S4 method for lazyVector anyNA(x, recursive = FALSE)
# S4 method for lazyMatrix anyNA(x, recursive = FALSE)
The is.na function returns a logical vector or a logical matrix, and the anyNA function returns a logical value.
is.na
anyNA
a lazy vector or a lazy matrix
ignored
is.na(NA_lazy_) is.na(lazyvec(c(1, 2, NA, NaN, Inf))) anyNA(lazyvec(c(1, 2, NA)))
Run the code above in your browser using DataLab