Learn R Programming

haven (version 2.5.2)

zap_empty: Convert empty strings into missing values

Description

Convert empty strings into missing values

Usage

zap_empty(x)

Value

A character vector with empty strings replaced by missing values.

Arguments

x

A character vector

See Also

Other zappers: zap_formats(), zap_labels(), zap_label(), zap_widths()

Examples

Run this code
x <- c("a", "", "c")
zap_empty(x)

Run the code above in your browser using DataLab