Learn R Programming

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

Examples

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

Run the code above in your browser using DataLab