| get.array.subset.affybatch {simpleaffy} | R Documentation |
Looks at a factor in the phenotypic data for an AffyBatch or ExpressionSet object and
uses it to select a subset of arrays, as defined by 'members'.
get.array.subset.affybatch(x, group, members) get.array.subset.exprset(x, group, members)
x |
An AffyBatch or ExpressionSet object. |
group |
The name of the pData column to use. |
members |
The labels within the pData column to match against. |
Subsetting an AffyBatch object by array is achieved using [x,], while the same is achieved for an ExpressionSet by [,x]. Hence the two different functions. In general the generic method get.array.subset should be used - since it sorts this all out automatically.
An AffyBatch or ExpressionSet (as appropriate) containing the selected subset of chips.
Crispin J Miller
## Not run:
subset1 <- get.array.subset.affybatch(eset.rma,"group","A")
subset2 <- get.array.subset.exprset(eset.rma,"group",c("A","P"))
subset3 <- get.array.subset(eset.rma,"group","A")
## End(Not run)