capitalizeStrings {BBmisc} | R Documentation |
Capitalize strings in a vector
Description
Capitalise first word or all words of a character vector. Lower back of vector element or word, respectively.
Usage
capitalizeStrings(x, all.words = FALSE, lower.back = FALSE)
Arguments
x |
[ |
all.words |
[ |
lower.back |
[ |
Value
Capitalized vector: [character(n)
].
Examples
capitalizeStrings(c("the taIl", "wags The dOg", "That looks fuNny!"))
capitalizeStrings(c("the taIl", "wags The dOg", "That looks fuNny!")
, all.words = TRUE, lower.back = TRUE)
[Package BBmisc version 1.13 Index]