Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

Re: [R] do.call("+", ...)

Robin Hankin

2006-11-17

Replies:


On 17 Nov 2006, at 14:14, Peter Dalgaard wrote:

[snip]

>
> so a+b+c is really (a+b)+c and I was calculating a+(b+c). That's
> actually a little bit harder because you don't get help from argument
> matching:
>
> "++" <- function(...) if ((n <- nargs()) == 1) ..1 else {
>   l <- list(...)
>   do.call("++",l[-n]) + l[[n]]
> }
>


Aha, the dreaded "..1" argument.  Where do I look for documentation
on this?

[It is mentioned twice in The R Language Definition, but I'm no wiser]




--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 023-8059-7743

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.