rowfuse: Matrix merging of rows with equal names

View source: R/Utils.R

rowfuseR Documentation

Matrix merging of rows with equal names

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

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 Oct. 21, 2023, 7:11 a.m.