Skip to content
Prev 165186 / 398506 Next

can a function alter the "..." argument and passed the result to another function?

Dan Kelley wrote:
do.call() is your friend here, because you can easily pass a *list* of 
arguments to the function when calling it:

parent <- function(stuff, ...) {
     dots <- list(...)
     if (!"type" %in% names(list)) dots$type <- 'l'
     do.call("plot", c(list(x=stuff), dots))
}

Best,
Uwe Ligges