powered by
Capitalize the first letter of each word
capitalize(x, force_tolower = FALSE)
A vector of character strings to be capitalized.
Whether to force the remaining letters to be lowercase.
x <- c( "hello world", "hello World" ) capitalize(x)
Run the code above in your browser using DataLab