[R] diagonal matrices

Gabor Grothendieck ggrothendieck at gmail.com
Sat Aug 20 18:28:16 CEST 2005


Have a look at adiag in the magic package.

On 8/20/05, Afshartous, David <afshart at exchange.sba.miami.edu> wrote:
> 
> 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 at miami.edu, thanks!
> 
> 
> 
>        [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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
>




More information about the R-help mailing list