powered by
Capitalizes the characters Making the first letter uppercase
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", "hello World" ) capitalize(x)
Run the code above in your browser using DataLab