getLinks {MetNet} | R Documentation

## Write an adjacency matrix to a 'data.frame'

### Description

'getLinks' vectorizes a numerical square 'matrix' and writes the values and their corresponding ranks to a 'data.frame'.

### Usage

    getLinks(mat, exclude = "== 1")

### Arguments

`mat` | matrix containing the values of confidence for a link
`exclude` | 'character', logical statement as 'character' to set 'TRUE' values to NaN in 'mat', will be omitted if 'exclude = NULL'

### Details

'getLinks' is a helper function used in the function 'threshold'.

### Value

'data.frame' with entries 'row', 'col', 'confidence' and 'rank'

### Author(s)

Thomas Naake, thomasnaake@googlemail.com

### Examples

    mat <- matrix(0:8, ncol = 3, nrow = 3)
    MetNet:::getLinks(mat, exclude = "== 0")

[Package MetNet version 1.6.0 Index]