View source: R/clean_fac_col_txt.R
clean_fac_col_txt | R Documentation |
Cleans data usually associated with facilities or column names. Specifically removes special characters (except spaces and dashes), capitalizes COVID, standardizes COVID-19 references, removes new line indicators and excess white space, and changes "state-wide" to "statewide" (case-insensitive). Optionally capitalizes output.
clean_fac_col_txt(x, to_upper = FALSE)
x |
character vector to clean |
to_upper |
logical, convert characters to upper case |
cleaned character vector
clean_fac_col_txt(" Messy string \n\r data ")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.