nchar0 | 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
nchar
all.equal(nchar0(NULL), TRUE)
all.equal(nchar0(character(0)), TRUE)
all.equal(nchar0(character(3)), TRUE)
all.equal(nchar0(c('a', 'c')), FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.