ei_ind function

Individual/Node level E-I Index

Individual/Node level E-I Index

This function calculates the E-I Index (External-internal) at the individual/node level

ei_ind(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(30,0.05,directed = TRUE) ##Add vertex names V(gs)$name<-1:vcount(gs) ## Add an attribute V(gs)$letters<- rep(LETTERS[1:5],6) ##Calculate the Individual E-I Results EI_IND_DATAFRAME<-ei_ind(gs,"letters")
  • Maintainer: Matthew Smith
  • License: GPL-3
  • Last published: 2023-03-31

Useful links