View source: R/cluster-metrics.R
| as_mcml | R Documentation |
Converts an object to the mcml class, a representation of a
multi-cluster network that does not depend on the tna package.
as_mcml(x, ...)
## S3 method for class 'cluster_summary'
as_mcml(x, ...)
## S3 method for class 'group_tna'
as_mcml(x, clusters = NULL, method = "sum", type = "tna", directed = TRUE, ...)
## S3 method for class 'mcml'
as_mcml(x, ...)
## Default S3 method:
as_mcml(x, ...)
x |
A |
... |
Additional arguments passed to methods. |
clusters |
Integer or character vector of row-to-group assignments.
Required when the |
method |
Aggregation method for macro weights (default |
type |
Transition type (default |
directed |
Logical; whether the network is directed (default |
An mcml object with components macro, clusters,
cluster_members, and meta.
An mcml object.
An mcml object. When clusters is provided,
macro$data contains the cluster assignments and macro$weights
is NULL.
The input mcml object unchanged.
summarize_clusters, as_tna
clusters <- list(C1 = c("Explore", "Reflect", "Discuss"),
C2 = c("Plan", "Create", "Share"),
C3 = c("Monitor", "Adapt", "Synthesize", "Evaluate"))
as_mcml(csum(regulation_net, clusters = clusters, type = "tna"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.