[R] diagonal matrices

From: Afshartous, David <afshart_at_exchange.sba.miami.edu>
Date: Sun 21 Aug 2005 - 02:04:57 EST

 

Hello all,  

I have matrices V.i of dimension n.i x n.i, where i = 1, ..., J, and the sum of n.i equals N. (and n.i ! = n.j)  

goal: create one large matrix V, where V has matrices V.i on diagonal.  

I create each matrix V.i in a for loop (1 to J), so each time I'd like to augment V with the most recently calculated V.i, such that I'll have V after the final iteration of the for loop.  

question: how to initialize V and do the augmentation. any advice much appreciated.  

cheers,
dave  

ps - please respond directly to afshar@miami.edu, thanks!    

        [[alternative HTML version deleted]]



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 Received on Sun Aug 21 02:08:16 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:55 EST