powered by
## S3 method for class 'default': toCamelCase(s, capitalize=FALSE, split="[ ]+", ...)
character
TRUE
strsplit
capitalize
chartr
s <- "hello world" print(toCamelCase(s)) # helloWorld print(toCamelCase(s, capitalize=TRUE)) # HelloWorld stopifnot(toCamelCase(s) == toCamelCase(toCamelCase(s)))
Run the code above in your browser using DataLab