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

Wiener, Matthew matthew_wiener at merck.com
Fri Mar 21 21:48:01 CET 2003


As Brian Ripley pointed out in a recent post, you can just give g() its own
"..." argument.

Regards, 

Matt Wiener

-----Original Message-----
From: Liaw, Andy [mailto:andy_liaw at merck.com] 
Sent: Friday, March 21, 2003 3:37 PM
To: 'r-help at stat.math.ethz.ch'
Subject: [R] manipulating "..." inside a function


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


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

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

----------------------------------------------------------------------------
--
Notice: This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that
may be confidential, proprietary copyrighted and/or legally privileged, and
is intended solely for the use of the individual or entity named on this
message.  If you are not the intended recipient, and have received this
message in error, please immediately return this by e-mail and then delete
it.

============================================================================
==


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



More information about the R-help mailing list