str_sentence: Modify sentence to Capitalize only first word

Description Usage Arguments Value Examples

View source: R/str_sentence.R

Description

Coerces everything to lower case, then capitalizes the first word and every word after that isn't 2-3 letter commonly lowercase word.

"in", "is","on", "at", "to", "from", "by","and", "but", "or", "for", "nor", "a", "an" all kept lowercase by default, additional words can be supplied with noCaps argument

Usage

1
str_sentence(string, noCaps = NULL)

Arguments

string

string to put in sentence form

noCaps

Additional Words to not capitalize

Value

Character String with proper capitalization

Examples

1
2
string = "HelLO, thIS IS A SEnTance oF SpONgEBoB mOcKInG yOu"
str_sentense(string)

Ajfrick/AVRCHelp documentation built on Oct. 26, 2018, 8:17 p.m.