Description Usage Arguments Details Value Author(s) See Also Examples
Return an RGList
, MAList
, EListRaw
, EList
, MArrayLM
or TestResults
object with only selected rows and columns of the original object.
1 2 3 | ## S3 method for class 'EList'
object[i, j, ...]
subsetListOfArrays(object, i, j, IJ, IX, I, JX)
|
object |
object of class |
i,j |
elements to extract. |
IJ |
character vector giving names of components that should be subsetted by |
IX |
character vector giving names of 2-dimensional components that should be subsetted by |
I |
character vector giving names of vector components that should be subsetted by |
JX |
character vector giving names of 2-dimensional components whose row dimension corresponds to |
... |
other arguments are not currently used. |
All these objects can be subsetted as if they were matrices.
i,j
may take any values acceptable for the matrix components of object
.
Either or both can be missing.
See the Extract help entry for more details on subsetting matrices.
object[]
will return the whole object unchanged.
A single index object[i]
will be taken to subset rows, so object[i]
and object[i,]
are equivalent.
subsetListOfArrays
is used internally as a utility function by the subsetting operations.
It is not intended to be called directly by users.
Values must be supplied for all arguments other than i
and j
.
An object the same as object
but containing data from the specified subset of rows and columns only.
Note the output object is of the same class as object
will have two dimensions attached even if i
or j
select a single row or column, i.e., subsetting for these objects does not drop dimensions.
Subsetting is exactly analogous to subsetting of matrices in R with drop=FALSE
.
Gordon Smyth
Extract
in the base package.
02.Classes for a summary of the different data classes.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.