Capitalizes the first letter of every word
capitalize_words(words, lowercase_of = TRUE)
The original string with the first letter of each word capitalized
A string or vector of strings with words you want capitalized
If TRUE (default), keeps the string " of " to be lowercased as is custom in English writing (e.g. District of Columbia).
capitalize_words("district of columbia")
Run the code above in your browser using DataLab