Learn R Programming

stringi (version 1.3.1)

stri_na2empty: Replace NAs with empty strings

Description

This function replaces all missing values with empty strings.

Usage

stri_na2empty(x)

Arguments

x

a character vector

Value

Always returns a character vector.

See Also

Other utils: stri_list2matrix, stri_remove_empty

Examples

Run this code
# NOT RUN {
stri_na2empty(c("a", NA, "", "b"))

# }

Run the code above in your browser using DataLab