[R] Can I avoid loops here ?

Tong Wang wangtong at usc.edu
Sun Oct 1 07:23:18 CEST 2006


Hi,
      I have two lists of matrices, and I  would like to get  a list of term by term product, say,
 mylist1<- list( X1,X2);  mylist2<-list(Y1,Y2)

Need: mylist3<-list(X1%*%Y1,X2%*%Y2)

Is there a way that allows me to do this without loops ?

Thanks a lot. 

best



More information about the R-help mailing list