View source: R/graph.utility.R
tupla.matrix | R Documentation |
Transform a named score matrix in a tupla, i.e. in the form nodeX nodeY score
.
tupla.matrix(m, output.file = "net.file.gz", digits = 3)
m |
a named score matrix. It can be either a |
output.file |
name of the file on which the matrix must be written. |
digits |
number of digits to be used to save scores of |
Only the non-zero interactions are kept, while the zero interactions are discarded.
A tupla score matrix stored in output.file.
data(wadj);
file <- tempfile();
tupla.matrix(W, output.file=file, digits=3);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.