read_matrix {CIMICE} | R Documentation

## Read dataset from an R matrix

### Description

also converts that matrix to a sparse matrix

### Usage

    read_matrix(mat)

### Arguments

`mat` | a boolean mutational matrix

### Value

the sparse mutational matrix to be used as CIMICE's input

### Examples

    m <- matrix(c(0,0,1,1,0,1,1,1,1), ncol=3)
    colnames(m) <- c("A","B","C")
    rownames(m) <- c("S1", "S2", "S3")
    read_matrix(m)

[Package CIMICE version 1.2.1 Index]