R/state.R

Defines functions var.is_blank

Documented in var.is_blank

#' Checks if provided variable is null, na, or of length 0
#'
#' @param x Variable provided.
#' @export
#' @examples
#' var.is_blank("")
#' [1] TRUE
var.is_blank <- function(x) {
    return(is.null(x) |
               length(x) == 0 |
               is.na(x) |
               x == "")
}
dads2busy/dataplumbr documentation built on July 2, 2021, 3:24 a.m.