Re: [R] Replacing values of a matrix with values from corresponding rows of another matrix

2013-07-15 Thread David Carlson
[i,] > })) > randomized > > Best, > Nello > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Laura Cisneros > Sent: Montag, 15. Juli 2013 03:09 > To: r-help@r-project.org > Subject: [R] Replacing va

Re: [R] Replacing values of a matrix with values from corresponding rows of another matrix

2013-07-15 Thread Laura Cisneros
o > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Laura Cisneros > Sent: Montag, 15. Juli 2013 03:09 > To: r-help@r-project.org > Subject: [R] Replacing values of a matrix with values from corresponding >

Re: [R] Replacing values of a matrix with values from corresponding rows of another matrix

2013-07-14 Thread Blaser Nello
bject: [R] Replacing values of a matrix with values from corresponding rows of another matrix Hello all, I have been trying to figure out how to replace non-zero values of a matrix with non-zero values from corresponding rows from another matrix. More specifically, let say we have the following

[R] Replacing values of a matrix with values from corresponding rows of another matrix

2013-07-14 Thread Laura Cisneros
Hello all, I have been trying to figure out how to replace non-zero values of a matrix with non-zero values from corresponding rows from another matrix. More specifically, let say we have the following original matrix: original <- matrix(c(0,0,4,0,0,1,2,2,12,1,0,2,0,5,0,0,10,1,3,1,0,5,0,4),byrow=