subsetting: Subset SimResults Object

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Extract a subset of a SimResults.

Usage

1
2
## S4 method for signature 'SimResults'
x[i, j]

Arguments

x

object of class SimResults.

i,j

elements to extract. i subsets the tags or genes while j subsets the libraries.

Details

i,j may take any values acceptable for the matrix components of an object of class SimResults.

Value

An object of class SimResults, holding data from the specified subset of tags/genes and libraries.

Author(s)

Xiaobei Zhou and Mark D. Robinson

See Also

SimResults in benchmarkR package.

Examples

1
2
3
4
re <- SimResults(pval=matrix(rnorm(1000), 250, 4), 
                 padj=matrix(rnorm(1000), 250, 4),  
                 labels=sample(0:1, 250, replace=TRUE))
res <- re[1:100, 2]

markrobinsonuzh/benchmarkR documentation built on May 21, 2019, 12:24 p.m.