powered by
This function converts the first letter in a string into upper case.
format_capitalize(x, verbose = TRUE)
x, with first letter capitalized.
x
A character vector or a factor. The latter is coerced to character. All other objects are returned unchanged.
Toggle warnings.
format_capitalize("hello") format_capitalize(c("hello", "world")) unique(format_capitalize(iris$Species))
Run the code above in your browser using DataLab