From ggrothendieck at gmail.com  Thu Nov 11 23:31:31 2010
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Thu, 11 Nov 2010 17:31:31 -0500
Subject: [Rd] Evaluation puzzle
In-Reply-To: <1289514423.29759.23.camel@punchbuggy>
References: <201011112008.oABK8xjk025512@punchbuggy.mayo.edu>
	<AANLkTim4PP95Ts=wPBRs1JskyTQwM3WdFrnYgscEzAXe@mail.gmail.com>
	<1289514423.29759.23.camel@punchbuggy>
Message-ID: <AANLkTinnifF8Yb0UiZKf4bjhZFTX-QgxCs=RJZGObUBB@mail.gmail.com>

On Thu, Nov 11, 2010 at 5:27 PM, Terry Therneau <therneau at mayo.edu> wrote:
> 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

You manufactured a "character" string, not a "formula", and character
strings don't have environments.

> 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.
>
>



-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



[Rd] Evaluation puzzle
Gabor Grothendieck