read_matrix: Read dataset from an R matrix

View source: R/input.R

read_matrixR 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)

redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.