Skip to contents

Takes a character string and capitalizes the first letter, while making all other characters lowercase.

Usage

cap_first(s)

Arguments

s

A character string to capitalize.

Value

A character string with only the first letter capitalized.

Examples

cap_first("hello world")
#> [1] "Hello world"
cap_first("r programming")
#> [1] "R programming"