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

This page illustrates how to use the enaStructure() function to find selected structural properties of a network model.

Load the library of models and select one to use for this illustration.

load data

data(enaModels)        # load library of Ecosystem Networks
names(enaModels)       # view model names
NET <- enaModels[[9]]  # select the oyster NET

Next, we apply the structural network analysis.

s <- enaStructure(NET)
attributes(s)

The s data object contains two objects: the adjacency matrix A and a vector of network statistics called ns.

# Adjacency matrix
show(s$A)
# network stats
show(s$ns)


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