dot-calcCentrality: CALCULATE SPECIES CENTRALITY

.calcCentralityR Documentation

CALCULATE SPECIES CENTRALITY

Description

Internal function to calculate centrality of a list of species in a network

Usage

.calcCentrality(
  network,
  sppExclude,
  metric = c("degree", "betweenness", "eigenvector")
)

Arguments

network

a network coercible to matrix and igraph

sppExclude

list of species to exclude the network before calculating degree centrality (all other metrics are calculated on the full network)

metric

centrality metric to calculate. Either "degree" (using igraph::degree(network, mode = "all", v = spp)), "betweenness" (using igraph::betweenness(network, directed = TRUE)) "eigenvector" centrality (using eigen_centrality(graph = network, directed = FALSE, scale = FALSE)). (see Bauer et al 2010, Ecological Complexity).


CeresBarros/ToolsCB documentation built on Aug. 23, 2024, 4:22 p.m.