View source: R/helper_functions.R
preprocess_string | R Documentation |
Replace some common characters / character sequences (e.g., Ä, Ü, "DIPL.-ING.") with their uppercase equivalents and removes punctuation, empty spaces and the word "Diplom".
preprocess_string(verbatim, lang = "de")
verbatim |
The character vector to process. |
lang |
The language the text is in. Currently only German is supported. Defaults to "de" (German). |
charToRaw()
helps to find UTF-8 characters.
The same character vector after processing
## Not run:
preprocess_string(c(
"Verkauf von B\u00fcchern, Schreibwaren",
"Fach\u00e4rztin f\u00fcr Kinder- und Jugendmedizin im \u00f6ffentlichen Gesundheitswesen",
"Industriemechaniker",
"Dipl.-Ing. - Agrarwirtschaft (Landwirtschaft)"
))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.