ei_network: Network level E-I Index

Description Usage Arguments Value Examples

View source: R/EI_network_function.R

Description

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

Usage

1
ei_network(gs, attrname)

Arguments

gs

igraph object

attrname

Attribute name

Value

Group level results dataframe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 13, 2020, 1:48 a.m.

Related to ei_network in ITNr...