Displaying 1 result from an estimated 1 matches for "row54".
Did you mean:
row4
2007 Nov 12
1
update matrix with subset of it where only row names match
I guess this has a simple solution:
I have matrix 'mat1' which has row and column names, e.g.:
A B C
row1 0 0 0
row2 0 0 0
....
rown 0 0 0
I have a another matrix 'mat2', essentially a subset of 'mat1' where the
rownames are all in 'mat1' e.g.:
B
row3 5
row8 6
row54 7
I want to insert the values of matrix mat2 for column B (in reality it
could be some or all of column names A, B or C, etc.) (same name in both
matrices if that matters - rownames of mat2 guaranteed to be in mat1)
into matrix mat1 where the rownames match, so final desired result is:
matrix...