as.matrix.GctMatrix: Coerce a GctMatrix object into a matrix

View source: R/GctMatrix.R

as.matrix.GctMatrixR Documentation

Coerce a GctMatrix object into a matrix

Description

Coerce a GctMatrix object into a matrix

Usage

## S3 method for class 'GctMatrix'
as.matrix(x, ...)

Arguments

x

A GctMatrix object

...

Not used

Value

A matrix with a desc attribute

Examples

m1 <- matrix(1:6, nrow=3, dimnames=list(sprintf("G%d", 1:3), sprintf("S%d", 1:2)))
gm1 <- GctMatrix(m1, desc=sprintf("Gene%d", 1:3))
print(gm1)
print(as.matrix(gm1))

ribiosIO documentation built on Feb. 20, 2026, 5:09 p.m.