addToList | R Documentation |
This helper function used in the function 'statistical' adds an adjacency matrix to a 'list' of adjacency matrices.
addToList(l, name, object)
l |
'list' of adjacency matrices |
name |
'character', name of added entry |
object |
'matrix' that will be added |
The function 'addToList' is a helper function used internally in 'statistical'.
'list' containing the existing matrices and the added matrix
Thomas Naake, thomasnaake@googlemail.com
data("x_test", package = "MetNet") x <- x_test[1:10, 3:ncol(x_test)] x <- as.matrix(x) cor_pearson <- correlation(x, method = "pearson") cor_spearman <- correlation(x, method = "spearman") l <- list(pearson = cor_pearson) MetNet:::addToList(l, "spearman_coef", cor_spearman$r)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.