Description Usage Arguments Value Examples
not_all_na
takes a vector and checks whether at least one element
is not an NA
. This is particularly useful when selecting non_empty
columns of a data frame or tibble.
1 | not_all_na(x)
|
x |
A vector to be evaluated. |
A logical value (TRUE
or FALSE
) that answers the question
"is any element of the vector not an NA.
1 2 3 4 | x1 <- c(0,1,NA,5)
not_all_na(x1)
x2 <- rep(NA, 5)
not_all_na(x2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.