powered by
capitalize the first letter in each words in a string
CapWords(s, strict = FALSE)
string
logical, indicating whether or not string it set to title case , Default: FALSE
returns capitalized string
# NOT RUN { CapWords("example eXAMPLE", FALSE) # [1] "Example EXAMPLE" CapWords("example eXAMPLE", TRUE) # [1] "Example Example" # }
Run the code above in your browser using DataLab