rowfuse | R Documentation |
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-
rowfuse(mat1, mat2, fill = NA)
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. |
fused matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.