check-scalar-isCharacter | R Documentation |
Does the input contain a (non-empty) character vector?
isCharacter(x, nullOk = FALSE)
x |
Object. |
nullOk |
|
TRUE
on success;
FALSE
on failure, with cause set.
Must have length.
Cannot contain NA
strings.
Cannot contain empty (""
) strings.
Updated 2019-07-29.
assertive.strings::is_non_missing_nor_empty_character()
.
## TRUE ====
isCharacter("a")
## FALSE ====
isCharacter(NULL)
isCharacter(character())
isCharacter("")
isCharacter(NA_character_)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.