Description Usage Arguments Value Examples
Perform common transformations on strings
1 2 3 4 5 6 7 8 9 10 11 | str_delete_whitespace(string)
str_delete_separators(string)
str_delete_nonword(string)
str_expand_capwords(string)
str_delete_leading_nonword(string)
str_delete_space(string)
|
string |
character vector These function take a single character vector argument and return a character vector that has had one or more functions applied to it. They are the building blocks for building up case transformations. |
character vector
1 2 3 4 5 6 7 8 9 | # TRANSFORMATIONS
str_ucfirst( "abc def" ) # Abc Def
str_expand_capwords( "AbcDef") # Abc Def
# DELETION
str_delete_whitespace( "ABC 123" ) # ABC123
str_delete_separators( "A_B-C.123" ) # ABC123
str_delete_nonword( "ABC & 123" ) # ABC123
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.