Skip to contents

Takes a character vector and converts it to a character vector of nice looking titles, taking into account common acronyms and abbreviations.

Usage

to_title_case(name)

Arguments

name

A string in snake_case

Value

A character vector of names in title case

Examples

to_title_case("my_column_name")
#> [1] "My Column Name"
# "My Column Name"

to_title_case(c("kwtid", "img_url", "geom"))
#> [1] "KWTID"     "Image URL" "Geometry" 
#  "KWTID"     "Image URL" "Geometry"