all_na: Checks that all values are NA

Description Usage Arguments Value Examples

Description

This is a helper function to check if all column/vector values are NA

Usage

1
all_na(x)

Arguments

x

A vector or data.frame column

Value

Boolean TRUE or FALSE depending on the nature of the column/vector

Examples

1
2
3
4
5
6
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)

Nelson-Gon/missplore documentation built on Feb. 11, 2022, 5:19 p.m.