Capitalizes the first letter of each element of the string vector.

capitalize(string)

Arguments

string

String to be capitalized

Value

Returns a vector of charaters with the first letter capitalized

Author

Charles Dupont

Examples

capitalize(c("Hello", "bob", "daN"))
#> [1] "Hello" "Bob"   "DaN"