Message-ID: <48D69C0F.3000706@biostat.ku.dk>
Date: 2008-09-21T19:10:07Z
From: Peter Dalgaard
Subject: Symmetric matrix
In-Reply-To: <317737de0809211054u1485f494l166e21f6b30e4123@mail.gmail.com>
Jorge Ivan Velez wrote:
> Dear Megh,
> Try this:
>
> a = matrix(rnorm(36), 6)
> a[upper.tri(a)]<-a[lower.tri(a)]
> a
>
>
> HTH,
>
>
If you look carefully, you'll see that it doesn't work! Dimitris had the
better idea.
--
O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907