[R] how to transform string to "Camel Case"?

Liviu Andronic landronimirc at gmail.com
Mon Apr 15 14:10:05 CEST 2013

On Mon, Apr 15, 2013 at 10:10 AM, Gergely Daróczi <gergely at snowl.net> wrote:
> Dear Liviu,
> I have just updated "tocamel" to have a new argument, so the development
> version of the package would produce:
>>  tocamel(z, upper = TRUE, sep = ' ')
> [1] "R Project"      "Hello World"    "Something Else"
Thanks for putting this in. Unfortunately as with other approaches it
fails on NA values:
z <- c("R project", "hello world", "something Else", NA)
> tocamel(z, sep=' ', upper=T)
[1] "R Project"      "Hello World"    "Something Else" "NANA"

Can this be fixed? Thanks,

More information about the R-help mailing list