[R] dot-dot-dot as an actual argument

2010-02-19 Thread Jyotirmoy Bhattacharya
I could not find any documentation of how dot-dot-dot works when used as an argument in a function call (rather than as a formal argument in a definition). I would appreciate some references to the rules governing situations like: f1-function(x,y,...){   print(x) } f2-function(...){   f1(...) }

Re: [R] dot-dot-dot as an actual argument

2010-02-19 Thread Gabor Grothendieck
It likely has to do with the fact that barchart uses unevaluated arguments. Look at its source by entering its name without arguments: barchart This does work: library(lattice) f.barchart2 - function(...) eval.parent(substitute(barchart(...))) x - data.frame(a = c(1,1,2,2), b = c(1,2,3,4), d =

Re: [R] dot-dot-dot as an actual argument

2010-02-19 Thread Paul Hiemstra
Jyotirmoy Bhattacharya wrote: I could not find any documentation of how dot-dot-dot works when used as an argument in a function call (rather than as a formal argument in a definition). I would appreciate some references to the rules governing situations like: f1-function(x,y,...){ print(x) }

Re: [R] dot-dot-dot as an actual argument

2010-02-19 Thread lith
I could not find any documentation of how dot-dot-dot works when used as an argument in a function call (rather than as a formal argument in a definition). You might also be interested in other thread regarding this problem: http://groups.google.com/group/r-help-archive/msg/5c6ea5eb593337b4

Re: [R] dot-dot-dot as an actual argument

2010-02-19 Thread Deepayan Sarkar
On Fri, Feb 19, 2010 at 4:44 AM, Paul Hiemstra p.hiems...@geo.uu.nl wrote: Jyotirmoy Bhattacharya wrote: I could not find any documentation of how dot-dot-dot works when used as an argument in a function call (rather than as a formal argument in a definition). I would appreciate some