[R] manipulating "..." inside a function
Deepayan Sarkar
deepayan at stat.wisc.edu
Tue Mar 25 19:42:27 CET 2003
On Friday 21 March 2003 02:36 pm, Liaw, Andy wrote:
> 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
> }
Why not (in the context you describe below)
f <- function(x, y, panel.number, ...) {
## some code
g(x, y, ...)
## some more code
}
? (This is the trick usually used for the strip function in particular.)
> 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
>
>
> ---------------------------------------------------------------------------
>---
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list