Correct the case of a vector to be in a preferred case
correct_case.Rd
Correct the case of a vector to be in a preferred case
Value
`x` where values that match `tolower(x) == tolower(preferred)` are converted to the preferred value.
See also
Other Text standardization:
replace_synonym()
Examples
correct_case(c("ABC", "Abc", "aBc", "def"), "Abc")
#> [1] "Abc" "Abc" "Abc" "def"