simple_cap | R Documentation |
Capitalize the first letter of each word in each element of a character vector. By default, words are assumed to be separated " ".
simple_cap(x, sep_str=" ")
x |
character vector, with elements to be capitalized. |
sep_str |
character string, the separator between words within vector elements. Vector elements are split on this string, each chunk is capitalized, and they are combined with this string as separator. Defaults to " ". |
a character vector of the same length as x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.