Description Usage Arguments Examples
This is used in calculating network metrics on pairs of matrices made from balanced and unbalanced trees.
1 | getnetmets(balanced, unbalanced, netmets)
|
balanced |
A list of matrices made from balanced trees. |
unbalanced |
A list of matrices made from unbalanced trees. |
netmets |
Network structure metrics to calculate - only use those that calculate single values for each matrix. |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Let's pretend these are balanced and unbalanced matrices
m <- 10
n <- 5
netmets <- c("connectance", "NODF2")
mats_rand_bal <- replicate(20, matrix(rbinom(m * n, 1, .5), ncol = m, nrow = n), FALSE)
mats_rand_unbal <- replicate(20, matrix(rbinom(m * n, 1, .5), ncol = m, nrow = n), FALSE)
getnetmets(balanced = mats_rand_bal, unbalanced=mats_rand_unbal, netmets)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.