Learn R Programming

simpleaffy (version 2.48.0)

get.array.indices: Find arrays in an AffyBatch object defined by their phenoData

Description

Given an AffyBatch object, looks at its phenoData slot to find the factor, or column specified by 'group' and searches that column for entries supplied in 'members'. Returns the indices of these rows. For example, in a six chip AffyBatch object, x, with a column 'treatment' containing 'c','c',t1','t2','t1','t2', a call to get.array.indices(x,\"treatment\",c(\"c\",\"t1\")) would return c(1,2,3,5).

Usage

get.array.indices(x,group,members)

Arguments

x
An ExpressionSet or AffyBatch object.
group
The name of the pData column to use.
members
The labels within the pData column to match against.

Examples

Run this code
  ## Not run: 
#     indices3 <- get.array.indices(eset.rma,"group","A")
#   ## End(Not run)

Run the code above in your browser using DataLab