[R] defining set of variables in a formula

Ozlem Yanmaz ozlem.yanmaz at gmail.com
Wed Sep 22 17:23:23 CEST 2010


Dear fellow R users,

I am trying to conduct a regression analysis. I have thousands of
variables. The names are V1, V2,........V2000
Is there an easy way to include these variables in the regression?
my model is something like that:

model<- lm(y~V1+V2+.....+V2000, data=data)

Thanks so much in advance,

Ozlem



More information about the R-help mailing list