Re: [R] environment question: changing variables from a formula through model.frame?

2011-01-30 Thread Tal Galili
Hello Niels, Thank you very much! Your solution was exactly what I needed. (I didn't realize that "formula" has it's own environment - very useful!) Best, Tal Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275

Re: [R] environment question: changing variables from a formula through model.frame?

2011-01-30 Thread Niels Richard Hansen
Hi Tal On 29/01/11 13.25, Tal Galili wrote: Hello all, I came across a behavior of R with environments that I'm not sure what is causing it. It involves changing variables that are found through using model.frame on a formula inside a function. I wonder if it's a "bug" or a "feature". And in e

[R] environment question: changing variables from a formula through model.frame?

2011-01-29 Thread Tal Galili
Hello all, I came across a behavior of R with environments that I'm not sure what is causing it. It involves changing variables that are found through using model.frame on a formula inside a function. I wonder if it's a "bug" or a "feature". And in either case, how it might be managed. Here is