getnetmets: Calculate network metrics on matrices.

Description Usage Arguments Examples

View source: R/getnetmets.r

Description

This is used in calculating network metrics on pairs of matrices made from balanced and unbalanced trees.

Usage

1
  getnetmets(balanced, unbalanced, netmets)

Arguments

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.

Examples

 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)

sckott/treeshape documentation built on May 29, 2019, 4:07 p.m.