concept tolower() in category R

This is an excerpt from Manning's book Exploring Data with R.
tolower() and toupper() (Character Translation and Casefolding)
There are some useful base R functions that help us to transform character values in vectors. Should we need to have strings all in upper case or lower case letters, the toupper() and tolower() functions will make that possible. Listing 8.10 provides the code; the output is provided just after that.
Listing 8.10 Using the toupper() and tolower() functions to transform characters to upper case and lower case.
```{r toupper_tolower} mixed_cases <- c("One", "two", "Three", "FOUR") c( toupper(mixed_cases[1:2]), tolower(mixed_cases[3:4]) ) ``` #> [1] "ONE" "TWO" "three" "four"Why would you ever want to make these transformations? Well, tolower() is useful if you have string inputs of mixed case (e.g., c("yes", "Yes")) and you’d like to standardize those values to lower case, perhaps for plotting or for string matching in filter() statements. The toupper() function might be used for similar reasons, and may also be handy for creating initialisms for printing (e.g., toupper("uk") gives us "UK").