Description Usage Arguments Value Note Author(s) See Also Examples
Allows for dropping observations (rows) determined by row names or factor levels from a data.frame or matrix.
1 |
data |
a data.frame of matrix |
rowid |
vector of character strings identifying the rows to be dropped |
incol |
name or index of the column used to identify the observations (rows) |
colid |
vector of character strings identifying the columns to be dropped |
The data.frame or matrix without the dropped observations and/or variables. Attributes are passed on.
Ordinary subsetting by [...,...]
drops attributes like
doc
or tit
. Furthermore, the convenient
way to drop rows or columns by giving negative indices to
[...,...]
cannot be used with names of rows or columns.
Werner A. Stahel, ETH Zurich
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.