Learn R Programming

haven (version 1.0.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

Examples

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

Run the code above in your browser using DataLab