Re: [R] Substitute and quotes

2006-05-16 Thread Thomas Lumley
On Tue, 16 May 2006, Kerpel, John wrote: > I'm trying to update a model using: > > form <- substitute(.~.-bad.var, list(bad.var=bad.var)) > model.update<-update(model, form) > > where bad.var is a character string like lag(X1, 10) > > The problem is that substitute puts lag(X1, 10) in quotes - some

[R] Substitute and quotes

2006-05-16 Thread Kerpel, John
Hi folks! I'm trying to update a model using: form <- substitute(.~.-bad.var, list(bad.var=bad.var)) model.update<-update(model, form) where bad.var is a character string like lag(X1, 10) The problem is that substitute puts lag(X1, 10) in quotes - something I don't want it to do.