Make a String Title Case (making and, the, an, etc. lower case)

TitleCase(str = "", add_dont_cap = "")

Arguments

str

A string that you want to be in title case

add_dont_cap

A vector of strings that the user does not want capitalized

Examples

TitleCase("HelLo WoRLD OR good-bye?")
#> [1] "HelLo WoRLD or Good-bye?"