R/manipulate_string.R
cap_first.Rd
Takes a character string and capitalizes the first letter, while making all other characters lowercase.
cap_first(s)
A character string to capitalize.
A character string with only the first letter capitalized.
cap_first("hello world") #> [1] "Hello world" cap_first("r programming") #> [1] "R programming"