Zero characters or NULL

Share:

Description

Returns TRUE if (is.null(x) || (length(x) == 0) || (max(nchar(x)) == 0)).

Usage

1
nchar0(x, ...)

Arguments

x

a character vector or something that can be coerced to mode character

...

optional arguments to be passed to nchar

Value

TRUE if x is either NULL or max(nchar(x)) == 0. FALSE otherwise.

Author(s)

Spencer Graves

See Also

nchar

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.