View source: R/text-cleaning.R
remove_unacceptable_characters | R Documentation |
The primary goal for this function is to clean up entity names, which may only contain: letters, numbers, spaces, underscores, hyphens, periods, plus signs, apostrophes, and parentheses. Anything outside of this list is considered an 'unacceptable character'. This will fix anything included in [porTools::hacky_cleaning()]. Additionally, it will fix ':' (replaced with hyphen), ';' (replaced with period), '/' (replaced with space), ',' (removed), square brackets (removed), and &', '&', amp;' (all replaced with 'and').
remove_unacceptable_characters(text)
text |
String, or vector of strings, that might have unacceptable characters. |
The text with replacement, if needed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.