nchar0 {Ecfun} | R Documentation |
Zero characters or NULL
Description
Returns TRUE
if (is.null(x) ||
(length(x) == 0) || (max(nchar(x)) == 0))
.
Usage
nchar0(x, ...)
Arguments
x |
a character vector or something that can be coerced to mode character |
... |
optional arguments to be passed to
|
Value
TRUE
if x
is either
NULL
or max(nchar(x))
== 0. FALSE
otherwise.
Author(s)
Spencer Graves
See Also
Examples
all.equal(nchar0(NULL), TRUE)
all.equal(nchar0(character(0)), TRUE)
all.equal(nchar0(character(3)), TRUE)
all.equal(nchar0(c('a', 'c')), FALSE)
[Package Ecfun version 0.3-2 Index]