Learn R Programming

MAMA (version 1.0.2)

patternToString: Function to convert rows of a matrix to strings

Description

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

Usage

patternToString(X.discret)

Arguments

X.discret
Matrix

Value

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

Details

Originally part of MAP-Matches implementation

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

Run this code
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)

Run the code above in your browser using DataLab