Skip to contents

Convert string to title casing. Useful for fixing patient or street names.

Usage

pretty_words(x)

Arguments

x

String variable.

Value

Input string in title casing format.

Examples

pretty_words("MeSsY DaTa GiVeS mE a HeAdAcHe.")
#> [1] "Messy Data Gives Me a Headache."