powered by
Given a formula, a dataset and a subset, retrieve the dataset that fulfills the formula and subset.
dataSet(formula, data, subset = NULL)
The dataset in data as a data table with variables as specified in formula and rows as specified by subset.
data
formula
subset
A formula
A dataset
Either a logical vector or a vector of indices of the rows to be returned. If NULL (default), all rows are returned.
dataSet(mpg~.-disp,mtcars,10:20)
Run the code above in your browser using DataLab