Skip to content
Prev 263146 / 398503 Next

Model Formulae Evaluation

On Jun 20, 2011, at 15:08 , albeam wrote:

            
The canonical way goes something like 

eval(user.formula[[3]], #i.e. the RHS 
     envir = as.list(param.values), 
     enclos = environment(user.formula))

or maybe enclos = list2env(data, parent = environment(user.formula)) if there's a data argument.

All untested, of course. If you want us to actually test our suggestions, follow the instructions