missing0 | R Documentation |
TRUE if x
is missing or if length(x)
is 0.
missing0(x)
x |
a formal argument as for |
Only makes sense called from within another function
logical
: TRUE if x
is
missing
or if length(x)
is 0.
Spencer Graves
missing
tstFn <- function(x)missing0(x)
# missing
all.equal(tstFn(), TRUE)
# length 0
all.equal(tstFn(logical()), TRUE)
# supplied
all.equal(tstFn(1), FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.