ucfirst | R Documentation |
Uppercase the first letter in each word
ucfirst(x, lowercaseAll = FALSE, firstWordOnly = FALSE, ...)
x |
character vector. |
lowercaseAll |
logical indicating whether to force all letters to lowercase before applying uppercase to the first letter. |
firstWordOnly |
logical indicating whether to apply the
uppercase only to the first word in each string. Note that it
still applies the logic to every entry in the input vector |
... |
additional arguments are ignored. |
This function is a simple mimic of the Perl function ucfirst
which
converts the first letter in each word to uppercase. When
lowercaseAll=TRUE
it also forces all other letters to lowercase,
otherwise mixedCase words will retain capital letters in the middle
of words.
Other jam string functions:
asSize()
,
breaksByVector()
,
cPasteSU()
,
cPasteS()
,
cPasteUnique()
,
cPasteU()
,
cPaste()
,
fillBlanks()
,
formatInt()
,
gsubOrdered()
,
gsubs()
,
makeNames()
,
mixedOrder()
,
mixedSortDF()
,
mixedSorts()
,
mixedSort()
,
mmixedOrder()
,
nameVectorN()
,
nameVector()
,
padInteger()
,
padString()
,
pasteByRowOrdered()
,
pasteByRow()
,
sizeAsNum()
,
tcount()
,
uniques()
ucfirst("TESTING_ALL_UPPERCASE_INPUT")
ucfirst("TESTING_ALL_UPPERCASE_INPUT", TRUE)
ucfirst("TESTING_ALL_UPPERCASE_INPUT", TRUE, TRUE)
ucfirst("testing mixedCase upperAndLower case input")
ucfirst("testing mixedCase upperAndLower case input", TRUE)
ucfirst("testing mixedCase upperAndLower case input", TRUE, TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.