powered by
Check if all values in a vector are NA.
NA
all_na(x)
Logical, TRUE if x has only NA values, FALSE if
TRUE
x
FALSE
x has at least one non-missing value.
A vector or data frame.
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))
Run the code above in your browser using DataLab