string_upper | R Documentation |
Modify the case of the string.
string_upper(s) string_lower(s) string_swapcase(s) string_titlecase(s)
s |
A string (character) vector. |
The upper()
functions make all characters in a string vector in their capitalized case.
The string_lower()
function makes the same vector in their lower case.
The string_swapcase()
function switches the case for each character in a string vector.
The string_titlecase()
function converts the first character of each word to uppercase.
The synonym pattern of these functions are s_*()
and *()
(replace asterisks with upper, lower, swapcase, or titlecase).
Character vector.
https://github.com/robertschnitman/stringops
string_upper(rownames(mtcars)) string_lower(rownames(mtcars)) string_swapcase(rownames(mtcars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.