Capitalize first letter in string

cap_first(x)

Arguments

x

A character vector

Value

A character vector with first character of each item capitalized

Examples

cap_first("camille")
#> [1] "Camille"
cap_first(c("camille", "new haven"))
#> [1] "Camille"   "New haven"