Learn R Programming

MAMA (version 1.0.2)

patternmatrix: Function to split binary vectors to matrix.

Description

Funtion takes vector of binary strings (0,1) and returns matrix with strings split.)

Usage

patternmatrix(unipattern, n.entity)

Arguments

unipattern
Vector of binary strings
n.entity
Length of strings, number of studies in original application

Value

  • Binary matrix with rows corresponding to input 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
uni<-c("0101","1100","0011","0100")
patternmatrix(unipattern=uni,n.entity=4)

Run the code above in your browser using DataLab