R/is_full_na.R

Defines functions is_full_na

Documented in is_full_na

#' Predicate for full NA vector
#'
#' @description is_full_na test if the vector is full of NA's
#' @param . a vector
#'
#' @return a vector of boolean
#' @export
#'
#' @examples is_full_na(c(NA, NA, NA))

is_full_na <- function(.) {sum(is.na(.), na.rm = TRUE) == length(.)}

Try the thinkr package in your browser

Any scripts or data that you put into this service are public.

thinkr documentation built on Aug. 22, 2022, 5:05 p.m.