[R] How to generating diagnal blocks ?

From: Tong Wang <wangtong_at_usc.edu>
Date: Thu 21 Sep 2006 - 06:43:42 GMT


Hi,

     I am trying to creat a matrix with diagnal blocks, say, I have a matrix X of any dimension (nxm) ,and would like to have:
                                                   
                                                            X
                                                                X
                                                                    X
                                                                      .....
otherwise space filled with 0's. Is there a handy way to do this ?

Thanks a lot in advance.

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 Thu Sep 21 16:48:04 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 Thu 21 Sep 2006 - 07:30:09 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.