[R] How to generating diagnal blocks ?

Tong Wang wangtong at usc.edu
Thu Sep 21 08:43:42 CEST 2006


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



More information about the R-help mailing list