| all_na | R Documentation |
This is a helper function to check if all column/vector values are NA
all_na(x)
x |
A vector or data.frame column |
Boolean TRUE or FALSE depending on the nature of the column/vector
test <- data.frame(A=c(NA, 2), B= c(NA, NA))
all_na(test)
test_vec <- c("NA",NA,"nope")
test_numeric <- c(NA, 2)
all_na(test_vec)
all_na(test_numeric)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.