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