str_replace_na {stringr} | R Documentation |
Turn NA into "NA"
str_replace_na(string, replacement = "NA")
string |
Input vector. Either a character vector, or something coercible to one. |
replacement |
Supply separate pattern and replacement strings
to vectorise over the patterns. References of the form For |
str_replace_na(c(NA, "abc", "def"))