t.annMatrix: Transpose annmatrix object.

Description Usage Arguments Details Value Author(s) Examples

Description

Transpose operator for annmatrix object.

Usage

1
2
## S3 method for class 'annmatrix'
t(x)

Arguments

x

annmatrix object

Details

Transposes the matrix and switches the places of row and column meta-data.

Value

transposed annmatrix object

Author(s)

Karolis Koncevičius

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# construct the annmatrix object
coldata <- data.frame(group=c(rep("case", 20), rep("control", 20)),
                      gender=sample(c("M", "F"), 40, replace=TRUE)
                      )
rowdata <- data.frame(chr=sample(c("chr1", "chr2"), 100, replace=TRUE),
                         pos=runif(100, 0, 1000000)
                         )
annMat <- annmatrix(matrix(rnorm(100*40), 100, 40), rowdata, coldata)

t(annMat)

KKPMW/annmatrix documentation built on May 27, 2019, 11:42 a.m.