ei_ind {ITNr}R Documentation

Individual/Node level E-I Index

Description

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

Usage

ei_ind(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(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")


[Package ITNr version 0.7.0 Index]