View source: R/cluster-metrics.R
| aggregate_layers | R Documentation |
Combines multiple network layers into a single network.
aggregate_layers(
layers,
method = c("sum", "mean", "max", "min", "union", "intersection"),
weights = NULL
)
lagg(
layers,
method = c("sum", "mean", "max", "min", "union", "intersection"),
weights = NULL
)
layers |
List of adjacency matrices of the same dimensions |
method |
Aggregation: "sum" (default), "mean", "max", "min", "union"
or "intersection". |
weights |
Optional numeric vector of layer weights, one per layer,
used only by |
The aggregated adjacency matrix, with the dimnames of the first
layer. A list with a single layer is aggregated the same way, so
"union" and "intersection" binarize it and "sum"
multiplies it by its layer weight.
layers <- list(forward = regulation_net, backward = t(regulation_net))
aggregate_layers(layers, method = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.