Another Way to Subset

Since it can be annoying to use the subset function by naming the variables (in quotes, separated by commas), you can take advantage of the abbreviated syntax that uses the colon to designate a list. You can create subsets for all the adjacent variables that you want and then glue them together with the cbind function.

ANES2012ft1<-subset(ANES2012,select=ftgr_xfund:ftgr_feminists)
ANES2012ft2<-subset(ANES2012,select=ftgr_liberals:ftgr_working)
ANES2012ft3<-subset(ANES2012,select=ftgr_gay)
ANES2012ft4<-subset(ANES2012,select=ftgr_rich:ftgr_tea)
ANES2012ft<-cbind(ANES2012ft1,ANES2012ft2,ANES2012ft3,ANES2012ft4)