NULL_to_charNA | R Documentation |
This is useful for missing list elements (which returns NULL), but when the missing element in refClass should be NA_character_ (and NULL would return an error)
NULL_to_charNA(char_or_NULL)
char_or_NULL |
A string or NULL |
NULL_to_charNA(NA) ## NA
NULL_to_charNA(NULL) ## NA_character_
NULL_to_charNA("hi") ## "hi"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.