[R] manipulating "..." inside a function

Liaw, Andy andy_liaw at merck.com
Fri Mar 21 21:36:52 CET 2003


Dear R-help,

Can some one tell me how to do the following (if it's possible)?

Suppose I have a function like this:

f <- function(x, y, ...) {
    ## some code
    g(x, y, ...)
   ## some more code
}

The problem is that g() may not understand everything that comes through in
"...".  Is there a way to delete some component of "..." and then pass it to
g()?

Here's the description of the real problem:  f() is a panel.something
function, and g() is a model fitting function.  Lattice passes
"panel.number" as part of "..." to f(), and g() complains about unused
argument "panel.number".

I'd be very grateful for any help!

Cheers,
Andy


------------------------------------------------------------------------------



More information about the R-help mailing list