
Convert empty strings into missing values
zap_empty(x)
A character vector with empty strings replaced by missing values.
A character vector
Other zappers:
zap_formats()
,
zap_labels()
,
zap_label()
,
zap_widths()
x <- c("a", "", "c")
zap_empty(x)
Run the code above in your browser using DataLab