GetCentralities: Calculate network metrics for a food web

Description Usage Arguments Value

Description

Read in a matrix and calculate log closeness centrality, log eigenvector centrality, and trophic level for each species. Note that this function is used internally and is not likely to be useful on its own. Use igraph functionality and getTL() for centrality calculations beyond replicating simulations from Wootton et al.

Usage

1
GetCentralities(matfile)

Arguments

matfile

path to parameterized nework

Value

a data frame containing log(closeness centrality), log(eigenvector centrality), and trophic level for each species in the network.


esander91/PredictImportance documentation built on May 16, 2019, 8:51 a.m.