[R] modifying the dots argument - how?

2010-03-11 Thread Mark Heckmann
Is there a way to modify the dots-argument? Let's consider I have a function that passes on its ... arguments to another function. For some reason I know, that some elements in ... will cause problems. Can I modify the ... structure somehow, e.g. delete elements? foo - function(...){

Re: [R] modifying the dots argument - how?

2010-03-11 Thread Claudia Beleites
Mark, dots - list (...) gives you a list with the dots arguments if innerFoo expects not a list but normal arguments, do.call is your friend: do.call (innerFoo, dots) HTH schönen Tag, Claudia Mark Heckmann wrote: Is there a way to modify the dots-argument? Let's consider I have a function