Re: [R] string evaluation

2011-03-12 Thread Wensui Liu
Thank you so much, David. Your solution exactly suits my need. formula() seems the key. appreciate your help! On Sat, Mar 12, 2011 at 10:22 AM, David Winsemius wrote: > > On Mar 12, 2011, at 10:10 AM, Wensui Liu wrote: > >> Good morning, dear listers >> >> I am wondering how to do string evalua

Re: [R] string evaluation

2011-03-12 Thread David Winsemius
On Mar 12, 2011, at 10:10 AM, Wensui Liu wrote: Good morning, dear listers I am wondering how to do string evaluation such that model <- glm(Y ~ [STRING], data = mydata) where STRING <- "x1 + x2 + x3" It is very doable in other language such as SAS. Also "very doable" in R. You need to