all_na | R Documentation |
Check if all values in a vector are NA
.
all_na(x)
x |
A vector or data frame. |
Logical, TRUE
if x
has only NA values, FALSE
if
x
has at least one non-missing value.
x <- c(NA, NA, NA)
y <- c(1, NA, NA)
all_na(x)
all_na(y)
all_na(data.frame(x, y))
all_na(list(x, y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.