View source: R/network_analysis.R
| summarize_networks | R Documentation |
Summarize multiple networks
summarize_networks(networks, threshold = 0, directed = TRUE)
networks |
Named list of supported networks. Unnamed elements are
labeled |
threshold |
Edge-presence threshold, applied as
|
directed |
Treat networks as directed. |
A tidy base data.frame with one row per network and columns
network, nodes, edges, density, mean_weight, and components.
mean_weight is NA when no edge passes the threshold. Requires the
suggested igraph package.
networks <- list(
first = simulate_network(nodes = 25, model = "bernoulli", probability = 0.1, seed = 1),
second = simulate_network(nodes = 25, model = "bernoulli", probability = 0.2, seed = 2)
)
if (requireNamespace("igraph", quietly = TRUE)) {
summarize_networks(networks)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.