[R] string evaluation

Wensui Liu liuwensui at gmail.com
Sat Mar 12 16:10:02 CET 2011


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.

Thank you so much for your insight!



More information about the R-help mailing list