Description Usage Arguments Value Examples
View source: R/calcTopologicalIndices.r
Calculate topological indices for ecological networks
1 | calc_topological_indices(ig, ncores = 0)
|
ig |
vector of igraph objects |
ncores |
number of cores used to compute in parallel, if 0 sequential processing is used. |
a data.frame with the following fields:
Size: |
Number of species |
Top: |
Number of top predator species |
Basal: |
Number of basal especies |
Omnivory: |
Number of omnivory species, is the number |
Links: |
number of interactions |
LD: |
linkage density |
Connectance: |
Connectance |
PathLength: |
average path length |
Clustering: |
clustering coeficient |
Cannib: |
number of cannibalistic species |
TLmean: |
mean trophic level |
TLmax: |
maximum trophic level |
Components: |
number of weakly connected components |
1 2 3 4 5 6 7 | calc_topological_indices(netData)
# Generate a test network
g <- graph_from_literal( 1 -+ 4 -+ 7,2 -+ 5 -+7, 3-+6-+7, 7-+7, 4+-3, simplify = FALSE)
calc_topological_indices(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.