haven (version 2.1.0)

zap_empty: Convert empty strings into missing values.

Description

Convert empty strings into missing values.

Usage

zap_empty(x)

Arguments

x

A character vector

Value

A character vector with empty strings replaced by missing values.

See Also

Other zappers: zap_formats, zap_labels, zap_label, zap_widths

Examples

Run this code
# NOT RUN {
x <- c("a", "", "c")
zap_empty(x)
# }

Run the code above in your browser using DataCamp Workspace