[R] Retrieve ... argument values

Thomas W Blackwell tblackw at umich.edu
Tue Sep 16 16:50:24 CEST 2003

Huan  -

Look at the function code for  order().  To show the function
definition, type just order at the command line (no quotes,
no parentheses).  This example is what I found most useful
when I had a similar question.  The green book is also useful.

-  tom blackwell  -  u michigan medical school  -  ann arbor  -

On Tue, 16 Sep 2003 huan.huang at bnpparibas.com wrote:

> Dear R users,
> I want to retrieve "..." argument values within a function.
> Here is a small exmaple:
> myfunc <- function(x, ...)
> {
>       if (hasArg(ylim))  a <- ylim
>       plot(x, ...)
> }
> I need to retrieve values of "ylim" (if it is defined when
> function is called) for later use in the function. Can anybody
> give me some hint?  Thanks a lot.
> Huan

More information about the R-help mailing list