capwords | R Documentation |
Capitalize each word in a character vector of length one.
capwords(s, strict = FALSE)
s |
A character vector of length one. |
strict |
= FALSE If |
The character vector originally submitted via argument s
with
the first letter of each word capitalized.
WEST Inc.
# ---- Capitalize each of 'hello' and 'there'. capwords("hello there") # ---- Use the strict argument. Returns 'Camp'. capwords("CAMP",strict=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.