Re: [R] Expanding a VCV Matrix

2011-04-21 Thread Maithula Chandrashekhar
Oh.you are right.sorry. So many work nowadays, even cant see things properly. Anyways thanks for your input. 2011/4/21 Uwe Ligges : > > > On 21.04.2011 17:08, Maithula Chandrashekhar wrote: >> >> Thanks Uwe for your insight. However this could not solve my problem. >> Actually, I

Re: [R] Expanding a VCV Matrix

2011-04-21 Thread Uwe Ligges
On 21.04.2011 17:08, Maithula Chandrashekhar wrote: Thanks Uwe for your insight. However this could not solve my problem. Actually, I meant to define 'Str' in this way: mat<- matrix(c(1,2,0,2,5,0.5,0,0.5,3), 3, 3) colnames(mat)<- rownames(mat)<- paste("variable", 1:3, sep="") mat

Re: [R] Expanding a VCV Matrix

2011-04-21 Thread Maithula Chandrashekhar
Thanks Uwe for your insight. However this could not solve my problem. Actually, I meant to define 'Str' in this way: > mat <- matrix(c(1,2,0,2,5,0.5,0,0.5,3), 3, 3) > colnames(mat) <- rownames(mat) <- paste("variable", 1:3, sep="") > mat variable1 variable2 variable3 variable1 1

Re: [R] Expanding a VCV Matrix

2011-04-21 Thread Uwe Ligges
On 20.04.2011 19:26, Maithula Chandrashekhar wrote: Dear all, I have special task to expand a given VCV matrix, however could not accomplice yet. Let say I have following VCV matrix mat<- matrix(c(1,2,0,2,5,0.5,0,0.5,3), 3, 3) colnames(mat)<- rownames(mat)<- paste("variable", 1:3) mat

[R] Expanding a VCV Matrix

2011-04-20 Thread Maithula Chandrashekhar
Dear all, I have special task to expand a given VCV matrix, however could not accomplice yet. Let say I have following VCV matrix > mat <- matrix(c(1,2,0,2,5,0.5,0,0.5,3), 3, 3) > colnames(mat) <- rownames(mat) <- paste("variable", 1:3) > mat variable 1 variable 2 variable 3 variable 1