spp.centrality: SPECIES CENTRALITY FUNCTION

View source: R/networkProperties.R

spp.centralityR Documentation

SPECIES CENTRALITY FUNCTION

Description

Function to calculate the centrality of a list of spp within a network, or a list of networks network can be a single network or a list of networks to extract spp centrality values from if network is a list, then species also needs to be a list of equal length

Usage

spp.centrality(
  networkList,
  sppExclude,
  metric = c("degree", "betweenness", "eigenvector"),
  ...
)

Arguments

networkList

a named list of networks, even if containing a single network

sppExclude

list of species to exclude from degree centrality calculations (all other metrics are calcualted 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).

...

passed to reproducible::Cache


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