subset.madata: Subsetting Microarray data objects

Description Usage Arguments Value Author(s) Examples

View source: R/subset.madata.R

Description

Return subsets of an an object of class madata meeting given conditions.

Usage

1
2
## S3 method for class 'madata'
subset(x, arrays, genes, ...)

Arguments

x

An object of class madata.

arrays

A vector specifying which arrays to keep or discard.

genes

A vector specifying which genes to keep or discard.

...

Ignored at this point.

Value

An object of class madata with specified arrays and genes.

Author(s)

Hao Wu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

maanova documentation built on Nov. 8, 2020, 8:21 p.m.