str_normalize | R Documentation |
Applies a set of regular-expression-based text normalization rules to one or more strings. All performed replacements are displayed on the console by default
(verbose = TRUE
).
str_normalize(
string,
rules = yay::regex_text_normalization,
n_context_chrs = 20L,
verbose = TRUE
)
string |
Input vector. Either a character vector, or something coercible to one. |
rules |
A data frame of regular expression |
n_context_chrs |
The (maximum) number of characters displayed around the actual |
verbose |
Whether or not to display replacements on the console. |
path
invisibly.
Regular expression rules: regex_text_normalization
regex_file_normalization
Other string functions:
str_normalize_file()
,
str_replace_file()
,
str_replace_verbose()
"This kind of “text normalization” is e.g. useful to apply before feeding stuff to ‘Pandoc’" |>
yay::str_normalize()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.