This function will check to see if a vector has at least 1 non- NA elements

not_all_NA(x)

Arguments

x

Vector of length >0 to be evaluated

Value

A logical value (i.e. TRUE or FALSE) that answers the question that any element of vector x is not NA

Examples

if (FALSE) {

x <- c(NA, NA, 1, NA)
y <- c(NA, NA, NA, NA)

not_all_NA(x)
# TRUE

not_all_NA(y)
# FALSE

}