RowMergeSparseMatrices: Merge two matrices by rowname

Description Usage Arguments Details Value

View source: R/utilities.R

Description

This function is for use on sparse matrices and should not be run on a Seurat object.

Usage

1

Arguments

mat1

First matrix

mat2

Second matrix

Details

Shared matrix rows (with the same row name) will be merged, and unshared rows (with different names) will be filled with zeros in the matrix not containing the row.

Value

A merged matrix

Returns a sparse matrix


lambdamoses/SeuratBasics documentation built on May 6, 2020, 9:32 a.m.