I have a vector of strings in lower case. I\'d like to change them to title case, meaning the first letter of every word would be capitalized. I\'ve managed to do it with a
Here is another one-liner, based on stringr package:
stringr
str_to_title(strings, locale = "en")
where strings is your vector of strings.
strings
Source