nchar0 {Ecfun} | R Documentation |
Returns TRUE if (is.null(x) || (length(x) == 0) || (max(nchar(x)) == 0)).
nchar0(x, ...)
x |
a character vector or something that can be coerced to mode character |
... |
optional arguments to be passed to |
TRUE
if x
is either NULL
or max(nchar(x))
== 0. FALSE
otherwise.
Spencer Graves
all.equal(nchar0(NULL), TRUE) all.equal(nchar0(character(0)), TRUE) all.equal(nchar0(character(3)), TRUE) all.equal(nchar0(c('a', 'c')), FALSE)