R/isNA.R

Defines functions missing_arg isNA

Documented in isNA missing_arg

## 2014-11-10 new file

isNA <- function(x){ # 2014-11-10  return TRUE if x is a single NA value and FALSE otherwise.
    is.atomic(x) && length(x) == 1 && is.na(x)
}

## similar code used internally in package Rdpack, e.g. is.missing.arg in parse_pairlist
missing_arg <- function(arg)
    typeof(arg) == "symbol" && deparse(arg) == ""
GeoBosh/gbutils documentation built on June 25, 2022, 9:34 a.m.