This function calculates the E-I Index (External-internal) at the group/attribute level
ei_group(gs, attrname)
Arguments
gs: igraph object
attrname: Attribute name
Returns
Group level results dataframe
Examples
require(igraph)##Create random network (igraph object)gs<-erdos.renyi.game(75,0.05,directed =TRUE)##Add vertex namesV(gs)$name<-1:vcount(gs)## Add an attributeV(gs)$letters<- rep(LETTERS[1:5],15)##Calculate the Group E-I ResultsEI_GROUP_DATAFRAME<-ei_group(gs,"letters")