validate_character | R Documentation |
This function checks whether a vector is a character and not of length zero or "".
validate_character(x)
x |
A vector. |
Returns a character vector (if valid) or NA (if not valid).
validate_character(c("beginning", "progressing", "achieving", "excelling", "", NA, 7)) # [1] "beginning" "progressing" "achieving" "excelling" NA NA # [7] "7"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.