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