ei_network: Network level E-I Index

View source: R/EI_network_function.R

ei_networkR Documentation

Network level E-I Index

Description

This function calculates the E-I Index (External-internal) at the network level

Usage

ei_network(gs, attrname)

Arguments

gs

igraph object

attrname

Attribute name

Value

Group level results dataframe

Examples

require(igraph)
##Create random network (igraph object)
gs<-erdos.renyi.game(75,0.05,directed = TRUE)

##Add vertex names
V(gs)$name<-1:vcount(gs)

## Add an attribute
V(gs)$letters<- rep(LETTERS[1:5],15)

##Calculate the Group E-I Results
EI_NETWORK<-ei_network(gs,"letters")


ITNr documentation built on March 31, 2023, 6:59 p.m.

Related to ei_network in ITNr...