| str_normal | R Documentation |
The generic normalization that underpins functions like normal_city() and
normal_address(). This function simply chains together three
stringr::str_*() functions:
Convert to uppercase.
Replace punctuation with whitespaces.
Trim and squish excess whitespace.
str_normal(x, case = TRUE, punct = "", quote = TRUE, squish = TRUE)
x |
A character string to normalize. |
case |
logical; whether |
punct |
character; A character string to replace most punctuation with. |
quote |
logical; whether |
squish |
logical; whether |
A normalized vector of the same length.
Other geographic normalization functions:
abbrev_full(),
abbrev_state(),
check_city(),
expand_abbrev(),
expand_state(),
fetch_city(),
normal_address(),
normal_city(),
normal_state(),
normal_zip()
str_normal(" TestING 123 example_test.String ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.