stri_na2empty: Replace NAs with Empty Strings

View source: R/utils.R

stri_na2emptyR Documentation

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)

Arguments

x

a character vector

Value

Returns a character vector.

Author(s)

Marek Gagolewski and other contributors

See Also

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

Gagolewski M., stringi: Fast and portable character string processing in R, Journal of Statistical Software 103(2), 2022, 1-59, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v103.i02")}

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

Examples

stri_na2empty(c('a', NA, '', 'b'))


stringi documentation built on May 29, 2024, 8:16 a.m.