View source: R/format_capitalize.R
format_capitalize | 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.