Skip to content
Prev 248705 / 398503 Next

Odp: Letters(V1, V2..) as row col indices instead of numbers

Suppose your correlation matrix is called cc.  One way
to do what you want is

result = cbind(as.vector(row(cc)),as.vector(col(cc)),as.vector(cc))
result = result[result[,1] != result[,2],]

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Fri, 28 Jan 2011, KumaraGuru wrote: