Learn R Programming

omnibus (version 1.2.12)

capIt: 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)

Value

Character or character vector.

Arguments

x

Character or character vector.

See Also

Examples

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

Run the code above in your browser using DataLab