Description Usage Arguments Value Examples
View source: R/toupper_first.R
This function takes in a string of arbitrary length and returns a string of the same length with the first character in each word capitalized, assuming that character is alphabetic
1 | toupper_first(string)
|
string |
String to modify |
Returns a string with the first character of each word capitalized, if that character is alphabetic.
1 2 3 4 5 6 7 8 | toupper_first('new york')
## -> [1] "New York"
toupper_first('NEW YORK')
## -> [1] "New York"
toupper_first('5th avenue')
## -> [1] "5th Avenue"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.