subset.data.table.Rd
Returns subsets of a data.table
.
# S3 method for class 'data.table'
subset(x, subset, select, ...)
The subset
argument works on the rows and will be evaluated
in the data.table
so columns can be referred to (by name) as variables
in the expression.
The data.table
that is returned will maintain the original keys
as long as they are not select
-ed out.
A data.table
containing the subset of rows and columns that are
selected.