View source: R/utils_compact.R
compact_character | R Documentation |
Remove empty strings from character
compact_character(x)
x |
A single character or a vector of characters. |
A character or a character vector with empty strings removed.
compact_character(c("x", "y", NA))
compact_character(c("x", "NULL", "", "y"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.