rowfuse: Matrix merging of rows with equal names

Description Usage Arguments Value

View source: R/Utils.R

Description

Similar to merge, given two matrices, row names are matched and columns are bound. All columns are preserved and all row.names present in both matrices are present in the result. Empty cells, belonging to a row that is present in one matrix and not the other are filled in with the 'fill' value-

Usage

1
rowfuse(mat1, mat2, fill = NA)

Arguments

mat1

matrix 1, with dimnames.

mat2

matrix 2, with dimnames.

fill

value to put inside the output matrix for those rows that were present in only one of the two matrices.

Value

fused matrix


Alethere/SmoothDescent documentation built on Jan. 14, 2022, 9:40 p.m.