| str_invert_na | R Documentation |
NA String Replacementstr_inv_replace_na() performs the inverse operation of
str_replace_na(); that is, it converts
replaced NA values back to NA_character_. This only works if NA is
replaced with "NA" or a case-wise variant thereof (i.e. "Na", "na", or
"nA"). It is designed to invert the addition of "_[0-9]" suffixes as
well.
str_invert_na(string)
string |
A character vector |
The input string with NA replacements converted back to
NA_character_
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.