Turn NA into "NA"
Arguments
- string
Input vector. Either a character vector, or something coercible to one.
- replacement
A single string.
Examples
str_replace_na(c(NA, "abc", "def"))
#> [1] "NA" "abc" "def"
Turn NA into "NA"
Input vector. Either a character vector, or something coercible to one.
A single string.
str_replace_na(c(NA, "abc", "def"))
#> [1] "NA" "abc" "def"