Takes a character vector and changes the first letter of each element to uppercase.

capitalize(str)

Arguments

str

(character()).

Value

Character vector, same length as str.

Examples

capitalize("foo bar")
#> [1] "Foo bar"