[R] Messing with the ... argument

2009-02-12 Thread Steve Lianoglou
Hi all, Sorry if this is documented somewhere, but trying to search and google for ways to alter my ... argument is having me chasing my tail. Is there someway that I can manipulate the elements in ...? Specifically I'd like to use certain vars in ..., then remove them from ... and pass the

Re: [R] Messing with the ... argument

2009-02-12 Thread Duncan Murdoch
On 2/12/2009 2:34 PM, Steve Lianoglou wrote: Hi all, Sorry if this is documented somewhere, but trying to search and google for ways to alter my ... argument is having me chasing my tail. Is there someway that I can manipulate the elements in ...? Specifically I'd like to use certain vars

Re: [R] Messing with the ... argument

2009-02-12 Thread Steve Lianoglou
Hi Duncan, ... I don't think so, but an alternative is to put together a parameter list and call do.call(). For example, ... Nice! Yeah, that did the trick quite well ... Thanks, -steve __ R-help@r-project.org mailing list

Re: [R] Messing with the ... argument

2009-02-12 Thread Wacek Kusnierczyk
here's an example which may give you a hint -- it is not supposed to solve your particular problem: f = function(...) list(...) g = function(...) { args = list(...) names = names(args) if (is.null(names)) f(...) else do.call(f, args[names(args) != 'foo']) } g()