Doesn't alter the capitalisation of any other characters, just the first one.

first_up(string)

Arguments

string

Character vector.

Value

Character vector with first character upper case.

Examples

first_up("string")
#> [1] "String"
first_up(c("string", "another string"))
#> [1] "String"         "Another string"
first_up(c("1 string", "another string", "Yet another string"))
#> [1] "1 string"           "Another string"     "Yet another string"