Learn R Programming

Ecfun (version 0.2-2)

missing0: Missing or length 0

Description

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

Usage

missing0(x)

Arguments

x

a formal argument as for missing

Value

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

Details

Only makes sense called from within another function

See Also

missing

Examples

Run this code
# NOT RUN {
tstFn <- function(x)missing0(x)
# missing 
# }
# NOT RUN {
all.equal(tstFn(), TRUE)
# }
# NOT RUN {
# length 0 
# }
# NOT RUN {
all.equal(tstFn(logical()), TRUE)
# }
# NOT RUN {
# supplied 
# }
# NOT RUN {
all.equal(tstFn(1), FALSE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab