Re: [R] proto: make a parameter persist

2012-02-21 Thread Ben quant
Thank you very much! I'll follow-up with more questions as I dabble...if I have any. Thank you ben On Tue, Feb 21, 2012 at 7:01 AM, Gabor Grothendieck wrote: > On Tue, Feb 21, 2012 at 12:15 AM, Ben quant wrote: > > Thanks again for your so far on proto. I have another question. > > > > What

Re: [R] proto: make a parameter persist

2012-02-21 Thread Gabor Grothendieck
On Tue, Feb 21, 2012 at 12:15 AM, Ben quant wrote: > Thanks again for your so far on proto. I have another question. > > What is the best way to "do stuff" based on data prior to calling a > function? I tried the code below without expr (and including commas after > data member assignments), but i

Re: [R] proto: make a parameter persist

2012-02-20 Thread Ben quant
Thanks again for your so far on proto. I have another question. What is the best way to "do stuff" based on data prior to calling a function? I tried the code below without expr (and including commas after data member assignments), but it errors out. I'd like to make decisions based on inputs duri

Re: [R] proto: make a parameter persist

2012-02-20 Thread Ben quant
I like it better. Thanks! Ben On Fri, Feb 17, 2012 at 11:38 PM, Gabor Grothendieck < ggrothendi...@gmail.com> wrote: > On Sat, Feb 18, 2012 at 12:44 AM, Ben quant wrote: > > The code below works as expected but: > > Using the proto package, is this the best way to 1) make a parameter > > persis

Re: [R] proto: make a parameter persist

2012-02-17 Thread Gabor Grothendieck
On Sat, Feb 18, 2012 at 12:44 AM, Ben quant wrote: > The code below works as expected but: > Using the proto package, is this the best way to 1) make a parameter > persist if the parameter is passed > in with a value, 2) allow for calling the bias() function without a > parameter assignment, 3) ha

[R] proto: make a parameter persist

2012-02-17 Thread Ben quant
The code below works as expected but: Using the proto package, is this the best way to 1) make a parameter persist if the parameter is passed in with a value, 2) allow for calling the bias() function without a parameter assignment, 3) have the x2 value initialize as 5? Thanks for your feedback. Giv