Skip to contents

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

Examples

x <- c('shots', 'were', 'exchanged at the ', 'hospital.')
capIt(x)
#>              shots               were  exchanged at the           hospital. 
#>            "Shots"             "Were" "Exchanged At The"        "Hospital."