There you go:


rdata = replicate(100, rnorm(15)) #construct a 2D matrix
c1 = cor(rdata)
require(reshape)
m_c1 <- melt(as.matrix(c1))
head(m_c1)


Cheers,
Tal



----------------Contact
Details:-------------------------------------------------------
Contact me: Tal.Galili@gmail.com |  972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
www.r-statistics.com (English)
----------------------------------------------------------------------------------------------




On Fri, Jan 28, 2011 at 6:13 AM, kparamas <kparamas@asu.edu> wrote:

> rdata = replicate(100, rnorm(15)) #construct a 2D matrix
> c1 = cor(rdata)
>

	[[alternative HTML version deleted]]

