Re: [Rd] Evaluation puzzle

From: Terry Therneau <therneau_at_mayo.edu>
Date: Thu, 11 Nov 2010 17:08:51 -0600

Kevin,
  The answer came from Gabor -- the model.frame function has a non-standard evaluation, in that it uses the enviromnent attached to the formula as the "enclosure" for looking up variable names.   This is clearly documented and I somehow missed it when reading the page. So "reading deficit" is the true root of my query. I scratched my head for a couple of hours before sending for help.

   Also a typo in my stripped down example -- I forgot the as.formula() wrapper which is in the actual survexp function. This added a red herring to the discussion.

Terry T.



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 11 Nov 2010 - 23:13:36 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