(This article was first published on V. » R, and kindly contributed to R-bloggers)
Use “select=c(var1,var2)” in the subset command to select var1 and var2.
Use “select=-c(var1,var2)” in the subset command to drop var1 and var2.
Technorati Tags: GNU-R
To leave a comment for the author, please follow the link and comment on his blog: V. » R.
R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series,ecdf, trading) and more...

Zero Inflated Models and Generalized Linear Mixed Models with R.
Zuur, Saveliev, Ieno (2012).