capIt {omnibus}R 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)

[Package omnibus version 1.2.13 Index]