subsetp | R Documentation |
Subset function that preserves column attributes.
subsetp(x, ..., droplevels = TRUE)
x |
An object to be subsetted (usually a |
... |
Further arguments passed to |
droplevels |
If |
An object similar to x
containing just the selected elements.
In the case of a data.frame
, attributes of columns (such as
label
and units
) are preserved.
subset
droplevels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.