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://en.wikipedia.org/wiki/Letter_case#Headings_and_publication_titles
upFirst(c('this and that','that is Beyond question'))