dataSet | R Documentation |
Given a formula, a dataset and a subset, retrieve the dataset that fulfills the formula and subset.
dataSet(formula, data, subset = NULL)
formula |
A formula |
data |
A dataset |
subset |
Either a logical vector or a vector of indices of the rows to be returned. If NULL (default), all rows are returned. |
The dataset in data
as a data table with variables as
specified in formula
and rows as specified by subset
.
dataSet(mpg~.-disp,mtcars,10:20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.