Re: [R] write to M, using row and columns taken from A and B, with values from C

2012-04-26 Thread Amen
Thanks a lot for your reply. I have managed to do it but still something that I do not know how to do that.This code below will read the first row in D and write it to a new file.I want to make a another loop to read all rows and write each result of every row to a file. library(Matrix) M <- Matr

Re: [R] write to M, using row and columns taken from A and B, with values from C

2012-04-26 Thread David Winsemius
On Apr 26, 2012, at 4:25 AM, Amen wrote: I want to write to M, using row and columns taken from A and B, with values from C. C is a lot longer than A and B, so only the first 67420 elements of C are used in my loop.So how can I improve it to take then the next 67420 and write it to new f

[R] write to M, using row and columns taken from A and B, with values from C

2012-04-26 Thread Amen
I want to write to M, using row and columns taken from A and B, with values from C. C is a lot longer than A and B, so only the first 67420 elements of C are used in my loop.So how can I improve it to take then the next 67420 and write it to new file and so on till the 248th 67420. Many thanks