[R] Can I avoid loops here ?

From: Tong Wang <wangtong_at_usc.edu>
Date: Sun 01 Oct 2006 - 05:23:18 GMT


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun Oct 01 15:28:12 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 01 Oct 2006 - 06:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.