ei_group: Group level E-I Index

View source: R/EI_group_function.R

ei_groupR Documentation

Group level E-I Index

Description

This function calculates the E-I Index (External-internal) at the group/attribute level

Usage

ei_group(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_GROUP_DATAFRAME<-ei_group(gs,"letters")


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

Related to ei_group in ITNr...