simpleCap | R Documentation |
Capitalize the first letter of every word in a character string.
simpleCap(x, first.only = FALSE)
x |
character string |
first.only |
logical; if |
To capitalize only the first word, use first.only = TRUE
.
A character string with every word's first letter capitalized.
Samuel Leung
simpleCap("clear cell")
simpleCap("high grade serous carcinoma")
simpleCap("ovarian cancer", first.only = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.