Re: [Rd] change function's formals default values

2006-04-04 Thread Andrew Finley
Your example is perfectly clear. I'll take your suggestion. Thanks a lot for your time- Andrew On Tue, 2006-04-04 at 10:00 -0700, Thomas Lumley wrote: > On Tue, 4 Apr 2006, Andrew Finley wrote: > > > Hi Thomas, > > > > Thanks for the note. I'm not sure about a lot of things. Setting the > > forma

Re: [Rd] change function's formals default values

2006-04-04 Thread Thomas Lumley
On Tue, 4 Apr 2006, Andrew Finley wrote: > Hi Thomas, > > Thanks for the note. I'm not sure about a lot of things. Setting the > formal defaults then calling the function seem straight forward. I just > assumed it would be like setting list values, or the C equivalent of > calling formals(fn)<-li

Re: [Rd] change function's formals default values

2006-04-04 Thread Andrew Finley
Hi Thomas, Thanks for the note. I'm not sure about a lot of things. Setting the formal defaults then calling the function seem straight forward. I just assumed it would be like setting list values, or the C equivalent of calling formals(fn)<-list(a=1, b=3). Following your suggestion, I can get

Re: [Rd] change function's formals default values

2006-04-04 Thread Thomas Lumley
On Mon, 3 Apr 2006, Andrew Finley wrote: > Hello, > > I'm passing a user defined function into my c code. Once this function > is in my c code, I'd like to iteratively change the values associated > with the parameters defined in the function's formal list then evaluate > the function using these

[Rd] change function's formals default values

2006-04-03 Thread Andrew Finley
Hello, I'm passing a user defined function into my c code. Once this function is in my c code, I'd like to iteratively change the values associated with the parameters defined in the function's formal list then evaluate the function using these newly set defaults (i.e., using lang1(fn)). My quest