View source: R/individual_EI_function.R
ei_ind | R Documentation |
This function calculates the E-I Index (External-internal) at the individual/node level
ei_ind(gs, attrname)
gs |
igraph object |
attrname |
Attribute name |
Group level results dataframe
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.