View source: R/cluster-metrics.R
| aggregate_weights | R Documentation |
Aggregates a vector of edge weights into a single value. The method names
follow those of igraph's edge.attr.comb argument.
aggregate_weights(w, method = "sum", n_possible = NULL)
wagg(w, method = "sum", n_possible = NULL)
w |
Numeric vector of edge weights. |
method |
Aggregation method: "sum", "mean", "median", "max", "min",
"prod", "density", "geomean". Default "sum". Any other value is an error.
|
n_possible |
Number of possible edges (used only by
|
A single numeric value, or 0 when no non-zero, non-NA weight remains.
aggregate_weights(regulation_net, method = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.