Re: [R] adding an argument to ...

2008-05-06 Thread Romain Francois
Bonjour Christophe, You can pass ... to a list and then extract its names, so something like: if( ! "uuu" %in% names(list(...)) ) Good luck with your keyboard, Romain [EMAIL PROTECTED] wrote: Hi the list Is it possible to add one argument to the arguments contain in ... ? I would like to d

[R] adding an argument to ...

2008-05-05 Thread cgenolin
Hi the list Is it possible to add one argument to the arguments contain in ... ? I would like to do : f <- function(ttt,...)[ if(... does not contain the args uuu) [add uuu=3 to ...] else[] g(ttt,...) ] More precisely, my function g is a callNextMethod() Thanks Christophe