na2empty: na2empty

View source: R/utility_functions.R

na2emptyR Documentation

na2empty

Description

Replace all instances of NA in character variable with empty string.

Usage

na2empty(x)

Arguments

x

A character vector.

Value

A character vector with NA values replaced with empty string.

See Also

unfactor

Examples

## Create character variable with missing values
ex1 <- c( 'A', NA, 'B', NA, 'C', NA )
ex1

## Replace NAs with empty string
ex1 <- na2empty( ex1 )
ex1

TSDT documentation built on April 4, 2025, 1:01 a.m.

Related to na2empty in TSDT...