getLinks | R Documentation |
'getLinks' vectorizes a numerical square 'matrix' and writes the values and their corresponding ranks to a 'data.frame'.
getLinks(mat, exclude = "== 1", decreasing = TRUE)
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' |
decreasing |
'logical', if 'TRUE', the highest confidence value will get the first rank, if 'FALSE', the lowest confidence value will get the first rank |
'getLinks' is a helper function used in the function 'threshold'.
'data.frame' with entries 'row', 'col', 'confidence' and 'rank'
Thomas Naake, thomasnaake@googlemail.com
mat <- matrix(0:8, ncol = 3, nrow = 3)
MetNet:::getLinks(mat, exclude = "== 0", decreasing = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.