allNA {externalVector}R Documentation

The generics "allNA" and "anyNA".

Description

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.

Usage

allNA(x)
anyNA(x)

Arguments

x An object on which is.na can be applied.

Value

Either TRUE or FALSE.

Examples

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))

[Package externalVector version 1.0.14 Index]