| addToList {MetNet} | R Documentation |
This helper function used in the function
createStatisticalAdjacencyList adds a adjacency matrix to a list of
adjacency matrices.
addToList(l, name, object)
l |
list of adjacency matrices |
name |
character, name of newly created entry |
object |
matrix containing the adjacency matrix to be added |
Used internally in createStatisticalAdjacencyList
list containing the existing adjacency matrices and the added adjacency matrix
Thomas Naake, thomasnaake@googlemail.com
data("x_test", package="MetNet")
x <- x_test[, 3:dim(x_test)[2]]
x <- as.matrix(x)
cor_pearson <- correlation(x, type="pearson")
cor_spearman <- correlation(x, type="spearman")
l <- list(pearson=cor_pearson)
MetNet:::addToList(l, "spearman", cor_spearman)