A wrapper for subset() method with proper set of attributed
dataset (data frame or matrix)
which rows to keep (indices, names or logical values)
which columns to select (indices, names or logical values)
The method works similar to the standard
subset() method, with minor differences. First
of all it keeps (and correct, if necessary) all important attributes. If only columns are
selected, it keeps all excluded rows as excluded. If only rows are selected, it keeps all
excluded columns. If both rows and columns are selected it removed all excluded elements first
and then makes the subset.
select may each be a vector with numbers or nanes
without excluded elements, or a logical expression.
a data with the subset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.