capitalize_words: Capitalizes the first letter of every word

Description Usage Arguments Value Examples

View source: R/cleaning_utils.R

Description

Capitalizes the first letter of every word

Usage

1
capitalize_words(words, lowercase_of = TRUE)

Arguments

words

A string or vector of strings with words you want capitalized

lowercase_of

If TRUE (default), keeps the string " of " to be lowercased as is custom in English writing (e.g. District of Columbia).

Value

The original string with the first letter of each word capitalized

Examples

1
capitalize_words("district of columbia")

crimeutils documentation built on Feb. 3, 2021, 5:07 p.m.