[R] Operating matrix positions

Svempa fempa at yahoo.com
Thu Oct 11 14:47:34 CEST 2007


I have two equally long lists of equally large matrices . I now want to
generate a column that consists of the differences between position [i,j] in
matrix k in each list. That is, the first position in this new column is
'position [1,1] in matrix 1 (of list 1)' minus 'position [1,1] in matrix 1
(of list 2)', and so on, continuing to the next matrix as soon as the
current one is searched through.

It seems like an easy problem, but I cannot seem to get the loops correct.

-- 
View this message in context: http://www.nabble.com/Operating-matrix-positions-tf4607032.html#a13155110
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list