Description Usage Arguments Value Examples
Capitalize a Character Vector
1 | capitalize(string, all = F)
|
string |
a character or character vector |
all |
logical, defauls to |
A character or character vector with either the first or all words capitalized.
1 2 3 4 | capitalize("hello world") # "Hello world"
capitalize(c("hello world", "hello mom")) # c("Hello world", "Hello mom")
capitalize(c("hello world"), all = T) # "Hello World"
capitalize(c("hello world", "hello mom"), all = T) # c("Hello World", "Hello Mom")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.