Dear Michael,
Thank you very much.
Ram
From: R. Michael Weylandt
Sent: Wednesday, November 16, 2011 1:48 PM
Subject: Re: [R] Conversion of symmetry matrix into a vector ONE MORE QUESTION
Try the as.dist() function -- it won't change any values,
riangular
> correlation matrix".
> If there is some way available or some function in R, it will be very nice.
> Thank you very much.
> Wish you good time.
> Thanks
>
> Regards,
> Ram Kumar Basnet.
> Ph. D. student
>
> From: R. Michael Weylandt
> To: ram b
Try something like this:
X = matrix(rnorm(25), 5); colnames(X) <- rownames(X) <- letters[1:5]
Y <- dist(X)
library(reshape)
melt(as.matrix(Y))
Michael
On Tue, Nov 15, 2011 at 7:03 PM, ram basnet wrote:
> Dear R users,
>
> I am not good in R-language programming. So, i need your help.
>
> I wa
Dear R users,
I am not good in R-language programming. So, i need your help.
I want to convert my lower-triangle value of symmetry matrix into a vector with
their row and column name.
I found a function called "sm2vec" in "corpcor" package but it give only a
vector of values but not row and col
4 matches
Mail list logo