[R] List arguments from data frame columns in formula

npobedina npobedina at gmail.com
Tue Jan 12 17:22:48 CET 2010


Thanks a lot for help! :)
I've invented a more complicated way to make it work: 
f <- as.formula(paste("data.y~", paste( names(data.x), collapse = "+")))
fml<-glm(f, data=data.x,family=binomial)


Try this:

glm(y ~ ., family = binomial, data = data, ...)


-- 
View this message in context: http://n4.nabble.com/List-arguments-from-data-frame-columns-in-formula-tp1012146p1012230.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list