On 15 April 2013 14:10, Liviu Andronic <landronim...@gmail.com> wrote:

> On Mon, Apr 15, 2013 at 10:10 AM, Gergely Daróczi <gerg...@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,
> Liviu
>

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

Best,
Gergely

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to