correct_case | R Documentation |
Correct the case of a vector to be in a preferred case
correct_case(x, preferred)
x |
An object to correct the case of |
preferred |
A character vector of preferred values |
'x' where values that match 'tolower(x) == tolower(preferred)' are converted to the preferred value.
Other Text standardization:
replace_synonym()
correct_case(c("ABC", "Abc", "aBc", "def"), "Abc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.