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)

adamlilith/omnibus documentation built on July 13, 2024, 11:16 p.m.