CapWords {bfw} | R Documentation |
capitalize the first letter in each words in a string
CapWords(s, strict = FALSE)
s |
string |
strict |
logical, indicating whether or not string it set to title case , Default: FALSE |
returns capitalized string
CapWords("example eXAMPLE", FALSE)
# [1] "Example EXAMPLE"
CapWords("example eXAMPLE", TRUE)
# [1] "Example Example"