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 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(...){
> innerFoo <- function(...){
>
> }
>
> AT THIS POINT I WANT TO MODIFY THE CONTENT OF ... BEFORE IT IS
> PASSED ON
>
> innerFoo(...)
> }
>
> Thanks,
> Mark
>
> ???????????????????????????????????????
> Mark Heckmann
> Dipl. Wirt.-Ing. cand. Psych.
> Vorstra?e 93 B01
> 28359 Bremen
> Blog: www.markheckmann.de
> R-Blog: http://ryouready.wordpress.com
>
--
Claudia Beleites
Dipartimento dei Materiali e delle Risorse Naturali
Universit? degli Studi di Trieste
Via Alfonso Valerio 6/a
I-34127 Trieste
phone: +39 0 40 5 58-37 68
email: cbeleites at units.it