Capitalize the first letters of words in a string. Can either use sentence
case (i.e., only the first word capitalized; all = FALSE
) or title case
(i.e., all words capitalized; all = TRUE
).
rat_cap_words(x, all = FALSE)
A character string
Logical. If TRUE
, the first letter of every word is capitalized.
If FALSE
(the default), only the first word is capitalized.
A character string with the specified capitalization.