Learn R Programming

haven (version 2.1.1)

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 DataLab