zap_empty: Convert empty strings into missing values

View source: R/zap_empty.R

zap_emptyR Documentation

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

x <- c("a", "", "c")
zap_empty(x)

tidyverse/haven documentation built on Oct. 14, 2024, 8:55 a.m.