patternToString: Function to convert rows of a matrix to strings

Description Usage Arguments Details Value Author(s) References Examples

Description

Function takes a matrix and converts rows of it to strings - One string per row.

Usage

1
patternToString(X.discret)

Arguments

X.discret

Matrix

Details

Originally part of MAP-Matches implementation

Value

Matrix with same number of rows as input, but with rows converted to strings.

Author(s)

Code provided by Xinan Yang <xnyang@seu.edu.cn>

References

Yang, X., Bentink, S. a Spang, R. 2005, Detecting Common Gene Expression Patterns in Multiple Cancer Outcome Entities, Biomedical Microdevices, vol.7:3

Examples

1
2
3
4
5
6
A<-matrix(c(0,1,0,0,1,1), ncol=4, nrow=5)
patternToString(A)
#another example
uni<-c("0101","1100","0011","0100")
A<-patternmatrix(uni,3)
patternToString(A)

MAMA documentation built on Jan. 15, 2017, 3:05 p.m.

Related to patternToString in MAMA...