Description Usage Arguments Details Examples
View source: R/centralitytable.R
Function for generating a table of the nodes ranked by four common centrality measures (degree, eigenvector, betweenness, and closeness centrality)
1 | centralitytable(edgelist)
|
edgelist |
a dataframe that contains a list of people and their associates. The first column represents source nodes and the second column represents target nodes. |
Degree centrality identifies well-connected nodes. Eigenvector centrality identifies nodes that are connected to well-connected nodes. Betweenness centrality identifies nodes that serve as bridges. Closeness centrality identifies nodes that are close to all other nodes in a network.
1 2 3 4 5 6 7 8 9 10 11 | # minimal example
source <- c("a", "a", "b", "c", "d", "d", "d")
target <- c("b", "c", "c", "d", "e", "f", "g")
associations <- data.frame(source, target)
centralitytable(edgelist = associations)
# FM 3-24 example association matrix
data("fm3_24_affiliations")
affiliations <- as.data.frame(fm3_24_affiliations)
associations <- transform2social(edgelist = affiliations)
centralitytable(edgelist = associations)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.