sentenceCase | R Documentation |
Convert each word in x to have an upper-case first letter and lower-case subsequent letters. Doesn't make exceptions for articles like "the" or "a". A word is defined as continuous alpha characters, so "bill's" becomes "Bill'S" and "u.s.a." becomes "U.S.A".
.sentenceCase(x)
x |
a character vector to convert |
a character vector with each word having its first letter capitalized and all others lowercase
loadflex:::.sentenceCase("the QUICK brown Fox jumped oVer the LaZY doG")
loadflex:::.sentenceCase(c("QUICK brown Fox","LaZY doG"))
loadflex:::.sentenceCase(c("u.s.a.", "u_s_a", "bill's", "3 bears", "2 be or not 2be"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.