knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  warning = F,
  message = F
)
library(enaR)
library(network)

The enaR library can be used to perform the Flow Analysis of Ecological Network Analysis. This includes finding the node throughflows, calculating the Input and Output analyses, and determining a set of whole-network metrics.

Load the data

# load a model
data(enaModels)
m <- enaModels[[9]] # select the oyster reef model

Perform the analysis

f <- enaFlow(m)  # peform the ENA flow analysis
attributes(f)
show(f$N)  # integral output-oriented flow intensity

show(f$ns) # vector of flow-based network statisics

Ascendency Metrics

The ascendancy metrics proposed by Dr. Ulanowicz are also most often applied to the network flow distributions. In enaR this is done as follows.

a <- enaAscendency(m)  # calculate the Ascendnecy metrics
show(a)


SEELab/enaR documentation built on Feb. 24, 2025, 7:43 a.m.