capIt: Capitalize first letter of a string

View source: R/capIt.r

capItR Documentation

Capitalize first letter of a string

Description

Capitalize the first letter of a string or the first letters of a list of strings.

Usage

capIt(x)

Arguments

x

Character or character vector.

Value

Character or character vector.

See Also

toupper, tolower,

Examples

x <- c('shots', 'were', 'exchanged at the ', 'hospital.')
capIt(x)

omnibus documentation built on Sept. 17, 2024, 5:09 p.m.