Learn R Programming

stringi (version 1.7.6)

stri_na2empty: Replace NAs with Empty Strings

Description

This function replaces all missing values with empty strings. See stri_replace_na for a generalization.

Usage

stri_na2empty(x)

Value

Returns a character vector.

Arguments

x

a character vector

Author

Marek Gagolewski and other contributors

See Also

The official online manual of stringi at https://stringi.gagolewski.com/

Other utils: stri_list2matrix(), stri_remove_empty(), stri_replace_na()

Examples

Run this code
stri_na2empty(c('a', NA, '', 'b'))

Run the code above in your browser using DataLab