Learn R Programming

greport (version 0.5-2)

upFirst: Change First Letters to Upper Case

Description

Changes the first letter of each word in a string to upper case, keeping selected words in lower case

Usage

upFirst(txt)

Arguments

txt
a character vector

References

http://lanecc.libguides.com/content.php?pid=38483&sid=295540, http://en.wikipedia.org/wiki/Letter_case#Headings_and_publication_titles, http://titlecapitalization.com

Examples

Run this code
upFirst(c('this and that','that is Beyond question'))

Run the code above in your browser using DataLab