print.annMatrix: Print annmatrix object.

Description Usage Arguments Details Value Author(s) Examples

Description

Functions to print an annmatrix object

Usage

1
2
## S3 method for class 'annmatrix'
print(x, nrow = 5, ncol = 5, ...)

Arguments

x

a matrix

nrow

number of rows to display (default is 5)

ncol

number of columns to display (default is 5)

...

further arguments passed to or from methods

Details

annmatrix objects are printed in a shortened form (5 rows and 5 columns by default). In addition the function displays information about available meta-data for rows and columns.

Value

invisibly returns annmatrix object.

Author(s)

Karolis Koncevičius

Examples

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

print(annMat)
print(annMat, nrow=2, ncol=2)

KKPMW/annmatrix documentation built on Dec. 23, 2018, 10:08 p.m.