[R] how to convert the lower triangle of a matrix to a symmetric matrix

Ranjan Maitra maitra at iastate.edu
Fri Apr 20 03:27:35 CEST 2007


Hi,

I have a vector of p*(p+1)/2 elements, essentially the lower triangle of a symmetric matrix. I was wondering if there is an easy way to make it fill a symmetric matrix. I have to do it several times, hence some efficient approach would be very useful.

Many thanks and best wishes,
Ranjan



More information about the R-help mailing list