Re: [R] match lists

2006-10-31 Thread Gabor Grothendieck
Try this: A - list(matrix(c(2,3,3,1,2,2), 3, dimnames = list(NULL, letters[1:2])), matrix(c(3,3,2,5,1,3), 3, dimnames = list(NULL, letters[3:4]))) B - list(matrix(c(1:5, 20*(1:5), 10+20*(1:5)), 5, dimnames = list(NULL, letters[5:7])), matrix(c(1:5, 10*(1:5),

[R] match lists

2006-10-30 Thread Heymans, MW
Dear list, I have this problem, please your advice. I have list A that contains two matrix elements: [[1]] a b [1,] 2 1 [2,] 3 2 [3,] 3 2 [[2]] c d [1,] 3 5 [2,] 3 1 [3,] 2 3 and list B, that also contains 2 matrices: [[1]] e f g [1,] 1 20 30 [2,] 2 40 50 [3,] 3 60

Re: [R] match lists

2006-10-30 Thread bogdan romocea
to set up A and B as named lists, and replace id with paste(names(A)[i],names(B)[j]). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Heymans, MW Sent: Sunday, October 29, 2006 6:35 PM To: r-help@stat.math.ethz.ch Subject: [R] match lists Dear list