[R] how to transform string to "Camel Case"?
landronimirc at gmail.com
Mon Apr 15 08:50:21 CEST 2013
Given the following vector:
> (z <- c('R project', 'hello world', 'something Else'))
 "R project" "hello world" "something Else"
I know how to obtain all capitals or all lower case letters:
 "r project" "hello world" "something else"
 "R PROJECT" "HELLO WORLD" "SOMETHING ELSE"
I saw the tocamel() function in 'rapport', but it doesn't do what I
want to achieve as it actually proceeds to camelCase/CamelCase the
 "RProject" "helloWorld" "somethingElse"
But how should I proceed to obtain Camel Case? Here's what I'd like to get:
c('R Project', 'Hello World', 'Something Else')
Do you know how to read?
Do you know how to write?
More information about the R-help