powered by
Check if all values in a vector are NA.
NA
all_na(x)
A vector or data frame.
Logical, TRUE if x has only NA values, FALSE if x has at least one non-missing value.
TRUE
x
FALSE
# NOT RUN { 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