Try this:
m <- matrix(Corr, ncol = 3, dimnames = list(unique(NodesRow),
unique(NodesCol)))
m[col(m) == row(m) | upper.tri(m)] <- NA
subset(as.data.frame.table(m), !is.na(Freq))
On Tue, Jun 8, 2010 at 10:29 AM, Matthew DiLeo wrote:
> I have a large correlation matrix that I'm trying to convert
I have a large correlation matrix that I'm trying to convert to a list of
every connection (edge) between every two nodes with its accompanying
correlation value (for Cytoscape). I figured out how to do this and to
remove the connections that nodes have to themselves but I can't figure out
how to g
2 matches
Mail list logo