Displaying 1 result from an estimated 1 matches for "nodesrow".
Did you mean:
nodesort
2010 Jun 08
1
Deleting duplicate values in a correlation matrix
...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 get rid of the duplicate pairs (e.g. the edge b-a is a duplicate of
a-b).
NodesRow<-rep(c("a","b","c"),each=3)
NodesCol<-rep(c("a","b","c"),times=3)
Corr<-c(1,.8,.4,.8,1,.3,.4,.3,1)
data<-data.frame(NodesRow,NodesCol,Corr)
# above is what my node and edge dataframe looks like
data2<-subset(data,data[,...