Skip to contents

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

Usage

capitalize(str)

Arguments

str

(character()).

Value

Character vector, same length as str.

Examples

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