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: cbelei...@units.it

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to