Skip to content
Prev 294671 / 398502 Next

pass objects into "..." (dot dot dot)

You can also just pass the ... to the next function.  E.g., the following
two functions do the same thing:

  > myPaste1 <- function(...) paste(...)
  > myPaste2 <- function(...) do.call(paste, list(...))
  > myPaste1(1,2:3,4)
  [1] "1 2 4" "1 3 4"
  > myPaste2(1,2:3,4)
  [1] "1 2 4" "1 3 4"

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com