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!

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to