Skip to content
Prev 243813 / 398506 Next

Querying a data frame or data.table

Sounds just like the subset function (?)

x <- as.data.frame(matrix(sample(5, 100, rep=TRUE), ncol=10))
subset(x, V1 > 3 & V2 < 5)

Michael
On 3 December 2010 19:05, Santosh Srinivas <santosh.srinivas at gmail.com> wrote: