Skip to content
Prev 39849 / 63421 Next

help with eval()

On 11-04-18 5:51 PM, Terry Therneau wrote:
The reason is that when a formula is created, the variables in it are 
assumed to have meaning in that context.  Where you work with the 
formula after that should not be relevant:  that's why formulas carry 
environments with them.  When you create the formula before the 
variables, things go wrong.

There's probably a way to associate the lung dataframe with the formula, 
or create the formula in such a way that things work, but I can't spot it.

Duncan Murdoch