On Tue, 16 Sep 2003 [EMAIL PROTECTED] 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, ...)
> }
>

One solution is
    dots<-substitute(list(...))
    a<-dots$ylim

which sets a to NULL if there is no ylim argument and to the ylim argument
if it exists

        -thomas

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to