check_row_col_names: Check a matrix had row and column names

Description Usage Arguments Details Value Examples

View source: R/Checks.R

Description

Checks the input matrix has row and column names and if it doesn't, it creates some.

Usage

1

Arguments

mat

a matrix

Details

Checks the input matrix has row and column names and if it doesn't, it creates some. Created row names are of the form: gene_# Created column names are of the form: cell_type_#

This is primarily used for formating simulated data.

Value

the input matrix with new row or column namese if needed.

Examples

1
2
	vals <- matrix(rnorm(70), ncol=7)
	mat <- check_row_col_names(vals);

tallulandrews/TreeOfCells documentation built on April 26, 2020, 2:43 p.m.