I'm creating an ANOVA model. Is there a way to pull in consecutive columns of variables for the test?

Example:  aov1<-aov(y~x1+x2+REG[,2:num], data=REG)

I'm not looking for interaction effects, I just want to create a model for the first few columns of variables (exact number and names will vary) and a few other predetermined variables (in the example I named them x1 and x2).

Thanks in advance.
- Jacy


	[[alternative HTML version deleted]]


