format_capitalize {insight} | R Documentation |
This function converts the first letter in a string into upper case.
format_capitalize(x, verbose = TRUE)
x |
A character vector or a factor. The latter is coerced to character. All other objects are returned unchanged. |
verbose |
Toggle warnings. |
x
, with first letter capitalized.
format_capitalize("hello")
format_capitalize(c("hello", "world"))
unique(format_capitalize(iris$Species))