View source: R/basic_functions.R
CapWords | 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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.