allNA {externalVector} | R Documentation |
The two generic "allNA"
returns TRUE
if all of its
arguments are NA's and FALSE
otherwise.
The two generic "anyNA"
returns TRUE
if any of its
arguments is NA and FALSE
otherwise.
allNA(x) anyNA(x)
x |
An object on which is.na can be applied. |
Either TRUE
or FALSE
.
allNA(1:3) allNA(c(NA, NA, NA)) allNA(c(1, 2, NA)) anyNA(1:3) anyNA(c(NA, NA, NA)) anyNA(c(1, 2, NA))