powered by
Remove empty strings from character
compact_character(x)
A character or a character vector with empty strings removed.
A single character or a vector of characters.
compact_character(c("x", "y", NA)) compact_character(c("x", "NULL", "", "y"))
Run the code above in your browser using DataLab