compact_character {insight} | R Documentation |
Remove empty strings from character
Description
Remove empty strings from character
Usage
compact_character(x)
Arguments
x |
A single character or a vector of characters. |
Value
A character or a character vector with empty strings removed.
Examples
compact_character(c("x", "y", NA))
compact_character(c("x", "NULL", "", "y"))
[Package insight version 0.20.2 Index]