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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.