getLinks: Write an adjacency matrix to a 'data.frame'

Description Usage Arguments Details Value Author(s) Examples

View source: R/statistical.R

Description

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

Usage

1
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

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

MetNet documentation built on Nov. 8, 2020, 7:34 p.m.