Description Usage Arguments Value Examples
Options for word capitalization
1 |
string |
string of words to capitalize |
words |
whether to capitalize |
string of equal length to string
with capitalization applied
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Title case
Cap("put me in title case please")
# First word only
Cap("only the first word this time.", "first")
# Existing capitalization is NOT preserved
Cap("Since Oklahoma is not the first word, it will not be capitalized.", "first")
# Vectorization is accommodated
Cap(c("title case please", "and me too"))
# Handles missing values
Cap(c("title case please", NA_character_, "and me too"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.