Description Usage Arguments Details Value Examples
Given a character vector, convert the first character to lower or upper case.
1 2 3 | tolowerfirst(x)
toupperfirst(x)
|
x |
A character vector |
tolowerfirst
converts the first character in a string to lower case, and
toupperfirst
converts the first character in a string to lower case.
The original character vector with the first character of every element converted to lower or upper case
1 2 3 4 5 6 | tolowerfirst("CamelCase")
tolowerfirst("ALLCAPS")
tolowerfirst(c("First", "_Second"))
toupperfirst("camelcase")
toupperfirst("allcaps")
toupperfirst(c("first", "_second"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.