I would like to subset my data based on multiple inequality conditions using the data.table package. The examples in the data.table manual show how to do this with character va
The solution is quite fast and straightforward using the package dplyr.
install.packages(dplyr)
library(dplyr)
newdata <- filter(data, X > 0 , Y > 0 , Z > 0)
dplyr is showing to be one of the easiest and fastest packages for managing data frames. Check this great tutorial here: http://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html
The RStudio team have alsoe produced a nice Cheat Sheet, here: http://www.rstudio.com/resources/cheatsheets/