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

2007-04-19 Thread Ranjan Maitra
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

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

2007-04-19 Thread Charles C. Berry
On Thu, 19 Apr 2007, Ranjan Maitra wrote: 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