capitalize | R Documentation |
Capitalize the first letter of each element in a character vector. NA elements are returned as NA.
capitalize(char_vec)
char_vec |
A character vector (or a vector of strings). |
A vector of 1st-letter capitalized strings.
s = c("gmlang", NA, "hello", "Jan", "feb")
capitalize(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.