powered by
Capitalise first word or all words of a character vector. Lower back of vector element or word, respectively.
capitalizeStrings(x, all.words = FALSE, lower.back = FALSE)
Capitalized vector: [character(n)].
character(n)
[character(n)] Vector of character elements to capitalize.
[logical(1)] If TRUE all words of each vector element are capitalized. FALSE capitalizes the first word of each vector element.
logical(1)
TRUE
FALSE
[logical(1)] TRUE lowers the back of each word or vector element (depends on all.words).
all.words
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)
Run the code above in your browser using DataLab