capitalize_first: Capitalize first letter

capitalize_firstR Documentation

Capitalize first letter

Description

Converts the input to a character vector, with the first letter of each element uppercased.

Usage

capitalize_first(x)

Arguments

x

Input of which to capitalize the first letter, typically a character vector.

Value

A character vector of the same length as x.

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"))

salim-b/pal documentation built on Feb. 28, 2025, 6:51 p.m.