powered by
Vectorized over string.
string
str_split_camel_case(string, lower = FALSE)
A character vector.
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.
# NOT RUN { str_split_camel_case(c("RoryNolan", "NaomiFlagg", "DepartmentOfSillyHats")) # }
Run the code above in your browser using DataLab