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.gal...@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 <kpara...@asu.edu> wrote: > rdata = replicate(100, rnorm(15)) #construct a 2D matrix > c1 = cor(rdata) > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.