subsetting {limma} | R Documentation |
Extract a subset of an RGList
, MAList
, EList
or MArrayLM
object.
## S3 method for class 'RGList': object[i, j, ...]
object |
object of class RGList , MAList , EList or MArrayLM |
i,j |
elements to extract. i subsets the probes or spots while j subsets the arrays |
... |
not used |
i,j
may take any values acceptable for the matrix components of object
.
See the Extract help entry for more details on subsetting matrices.
An object of the same class as object
holding data from the specified subset of genes and arrays.
Gordon Smyth
Extract
in the base package.
03.ReadingData gives an overview of data input and manipulation functions in LIMMA.
M <- A <- matrix(11:14,4,2) rownames(M) <- rownames(A) <- c("a","b","c","d") colnames(M) <- colnames(A) <- c("A","B") MA <- new("MAList",list(M=M,A=A)) MA[1:2,] MA[1:2,2] MA[,2]