remove_diacritics | R Documentation |
Accent characters and other diacritical marks are often difficult to type, and thus can be missing from text. To normalize the various ways a user might spell a word that should have a diacritical mark, you can convert all such characters to their simpler equivalent character.
remove_diacritics(text)
text |
A character vector to clean. |
The character vector with simpler character representations.
# This text can appear differently between machines if we aren't careful, so
# we explicitly encode the desired characters.
sample_text <- "fa\u00e7ile r\u00e9sum\u00e9"
sample_text
remove_diacritics(sample_text)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.