Re: [Rd] Evaluation puzzle

From: Terry Therneau <therneau_at_mayo.edu>
Date: Thu, 11 Nov 2010 16:27:03 -0600

Gabor wrote:
 At the above statement you have lost the environment of your formula.

> m$formula <- tform

Replace this with:

m$formula <- as.formula(tform, environment(formula))



  No, I have not "lost" an environment. I manufactured a formula which lacked something needed, but without the necessary hint that I needed it. But that is semantics: A closer reread of help(model.frame) shows that the documentation is there, I had missed it.   

 I'm still puzzled by recover though.

Terry T.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 11 Nov 2010 - 22:32:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 12 Nov 2010 - 00:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive