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 |
method |
Aggregation: "sum", "mean", "max", "min", "union", "intersection" |
weights |
Optional layer weights (for weighted sum) |
Aggregated adjacency matrix
# layers <- list(L1 = mat1, L2 = mat2, L3 = mat3)
# aggregate_layers(layers, "sum") # Total
# aggregate_layers(layers, "mean") # Average
# aggregate_layers(layers, "union") # Any edge
# aggregate_layers(layers, "intersection") # All edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.