Skip to contents

Replace NA with "NA"

Usage

strReplaceNa(x)

Arguments

x

character.

Value

character

Character vector with NA values converted to "NA".

Note

Updated 2023-09-21.

Examples

strReplaceNa(c("a", "b", NA))
#> [1] "a"  "b"  "NA"