[R] how to transform string to "Camel Case"?
Liviu Andronic
landronimirc at gmail.com
Mon Apr 15 14:57:59 CEST 2013
On Mon, Apr 15, 2013 at 2:22 PM, Gergely Daróczi <gergely at snowl.net> wrote:
> I have added an extra check in the function for NA values before applying
> `paste` at
> https://github.com/Rapporter/rapport/compare/34ca6a35fb...a04abc8b21
> Alex might not like it :)
>
> Example:
>
>> tocamel(z, upper = TRUE, sep = ' ')
> [1] "R Project" "Hello World" "Something Else" NA
>
Thanks! Now I'm getting somewhere:
z <- c("R project", "hello world", "something Else", "something-else",
NA)
> tocamel(z, sep=' ', upper=T, delim=" ")
[1] "R Project" "Hello World" "Something Else" "Something-else"
[5] NA
I hope Alex likes your fixes. Thanks,
Liviu
More information about the R-help
mailing list