subset.madata {maanova} | R Documentation |
Return subsets of an an object of class madata
meeting given
conditions.
## S3 method for class 'madata' subset(x, arrays, genes, ...)
x |
An object of class |
arrays |
A vector specifying which arrays to keep or discard. |
genes |
A vector specifying which genes to keep or discard. |
... |
Ignored at this point. |
An object of class madata
with specified arrays and genes.
Hao Wu
data(kidney) ## Not run: smalldata <- subset(kidney.raw, arrays=c(1,2)) # take out the all arrays except array 1 idx.array <- 1:kidney.raw$n.array smalldata <- subset(kidney.raw,arrays=(idx.array[-1])) # take out gene number 1 to 20 smalldata <- subset(kidney.raw,genes=1:20) ## End(Not run)