Re: [R] Deleting duplicate values in a correlation matrix

2010-06-08 Thread Henrique Dallazuanna
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

[R] Deleting duplicate values in a correlation matrix

2010-06-08 Thread Matthew DiLeo
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