Missing or length 0

Description

TRUE if x is missing or if length(x) is 0.

Usage

1

Arguments

x

a formal argument as for missing

Details

Only makes sense called from within another function

Value

logical: TRUE if x is missing or if length(x) is 0.

Author(s)

Spencer Graves

See Also

missing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
tstFn <- function(x)missing0(x)
# missing 

all.equal(tstFn(), TRUE)


# length 0 

all.equal(tstFn(logical()), TRUE)


# supplied 

all.equal(tstFn(1), FALSE)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.