Description Usage Arguments Details Value See Also Examples
Convert a string by applying one or more str_* functions.
1 | str_transform(string, ...)
|
string |
vector. This must be an atomic vector, and will be coerced to a character vector |
... |
one or more functions to apply to the string |
str_transform
applies successive functions to its first argument,
string
.
a character vector
make_str_replace
make_str_delete
1 2 3 4 5 6 7 8 9 10 11 | string = c( "catch-22", "finnegans wake" )
str_transform( string, str_capitalize )
str_transform( string, str_capitalize, str_delete_nonword )
str_delete_nonword( str_capitalize( string ) ) # SAME
## Not run:
# magrittr:
string %>% str_capitalize %>% str_delete_nonword # SAME
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.