Learn R Programming

dateutils (version 0.1.5)

allNA: Are all elements `NA`?

Description

Return a logical indicating if all elements are `NA`

Usage

allNA(x)

Arguments

x

data vector

Value

A logical variable indicating all elements are 'NA'

Examples

Run this code
# NOT RUN {
allNA(c(NA, NA, 1, NA)) ## FALSE
# }

Run the code above in your browser using DataLab