upFirst {Hmisc} | R Documentation |
Changes the first letter of each word in a string to upper case, keeping selected words in lower case. Words containing at least 2 capital letters are kept as-is.
upFirst(txt, lower = FALSE, alllower = FALSE)
txt |
a character vector |
lower |
set to |
alllower |
set to |
http://lanecc.libguides.com/content.php?pid=38483&sid=295540, http://en.wikipedia.org/wiki/Letter_case#Headings_and_publication_titles, http://titlecapitalization.com
upFirst(c('this and that','that is Beyond question'))