str_split_camel_case | R Documentation |
Vectorized over string
.
str_split_camel_case(string, lower = FALSE)
string |
A character vector. |
lower |
Do you want the output to be all lower case (or as is)? |
A list of character vectors, one list element for each element of
string
.
Adapted from Ramnath Vaidyanathan's answer at http://stackoverflow.com/questions/8406974/splitting-camelcase-in-r.
Other splitters:
str_split_by_numbers()
str_split_camel_case(c("RoryNolan", "NaomiFlagg", "DepartmentOfSillyHats"))
str_split_camel_case(c("RoryNolan", "NaomiFlagg", "DepartmentOfSillyHats",
lower = TRUE
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.