toTitleCase
Convert text to title case

Description

Capitalizes significant words in a phrase, such as is usually done in a newpaper headline or book title.

Usage

toTitleCase(text)

Arguments

text a character vector.

Details

Single letters and many prepositions are usually not capitalized. Other words are usually capitalized. Words immediately followed by a period are capitalized, except for a few abbreviations such as "v.", "vs.", and "al.". The first word in a string is always capitalized. (This behavior differs from that of open-source R).
Value
returns a character string the length of the input text whose words are capitalized in way a book title would be.
Examples
toTitleCase("fitting nonlinear models")
Package tools version 6.1.4-13
Package Index