Skip to contents

Capitalise the first letter of a character string in order to use it as title

Usage

toCapTitle(str)

Arguments

str

character string to capitalise as a title

Value

character string

Examples

my_title <- "number of salmonellosis cases by age group"
toCapTitle(my_title)
#> [1] "Number of salmonellosis cases by age group"