crimeutils (version 0.5.1)

capitalize_words: Capitalizes the first letter of every word

Description

Capitalizes the first letter of every word

Usage

capitalize_words(words, lowercase_of = TRUE)

Value

The original string with the first letter of each word capitalized

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).

Examples

Run this code
capitalize_words("district of columbia")

Run the code above in your browser using DataLab