Re: [R] Passing (Optional) Arguments

2008-03-25 Thread Jason Q. McClintic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Sir: Thank you for your assistance. I am most interested in your suggestion | You can use list(...) in foo3, and manually split the args to those | that | belong in foo1 and those that belong in foo2, and then construct calls | from them. (This al

Re: [R] Passing (Optional) Arguments

2008-03-25 Thread Duncan Murdoch
Jason Q. McClintic wrote: > Dear List: > > In short, I am writing a number of functions as building blocks for > other functions and have some questions about scoping and passing arguments. > > Suppose I have functions foo1, foo2, and foo3 such that: > > foo1<-function(a=1,b=TRUE,c=FALSE){#d

[R] Passing (Optional) Arguments

2008-03-24 Thread Jason Q. McClintic
Dear List: In short, I am writing a number of functions as building blocks for other functions and have some questions about scoping and passing arguments. Suppose I have functions foo1, foo2, and foo3 such that: foo1<-function(a=1,b=TRUE,c=FALSE){#do stuff}; foo2<-function(x=1,