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
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
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
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()
4 matches
Mail list logo