Converts the input to a character vector, with the first letter of each element uppercased.
See also
Other string functions:
as_chr()
,
as_comment_str()
,
as_line_feed_chr()
,
as_str()
,
dsv_colnames()
,
enum_str()
,
escape_lf()
,
fuse_regex()
,
prettify_nr()
,
sentenceify()
,
wrap_chr()
Examples
pal::capitalize_first(c("one", "Two", "tHREE"))
#> [1] "One" "Two" "THREE"