capitalize | R Documentation |
Make every word in string start in uppercase.
capitalize(x, strict = TRUE)
x |
a string (one or more words) to be formatted. |
strict |
whether existing uppercase letters should be lowercased. |
String with every word starting in uppercase.
Based on example in help(chartr)
. Better for multi-word strings than
Hmisc::capitalize
.
toTitleCase
does not capitalize all words.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.